Info

private Dialog buildDialog1(Context context) (

AlertDialog.Builder builder new AlertDialog.Builder(context);

builder.setIcon(R.drawable.alert dialog icon);

builder.setTitie(R.string.alert_dia log two but tons title);

builder.setPositiveButton(R.string.alert_dialog_ok, new Dialoglnterface.OnClickListener() (

public void onClick(Dialoglnterface dialog, int whichButton) I }

)) t builder.setNegativeButton(R.string.alert dialog_cancel, new Dialoglnter!ace.OnClickListener() {

public void onClick(Dialoglnterface dialog, int whichButton) { )

return builder.create(); 1

• AlertDialog.Buildcr builder = new AlertDialog.Builder(context)iu'nJ M'^fe'fcfiK AlertDialog. Builder It}*t1$L, KUT&Wifi AlertDialog,

• builder.setIcon(R.drawable.alert dialog icon)®<J*fr AlertDialog -'MSJJio iitRBSS fi^J Jut alert dialog icon.png iSitcffljt«

• builder.setTitle(R.string.alert dialog two_buttons title)iuiijift AlertDialog MS "'MS®. fc" mftrf-ftftti'&lE. value BMW string.xml jtftjltfl^*.

m Dialoglnterface.OnClickListenerO &tlfi9rttfll«f^>Jffi Button

• setNcgativeButtonO^TiSin setPositiveButton()^'ji*tf>5, Hl^^fi. ftiggcittW Mtto

• MSW-WW^-f Dialog MttttJg. ftfj builder.create()jfi"^fidliiW Dialog.

fl'^Ä AlertDialog? it^Ä AlertDialog.Builder?

AlertDialog £ Dialog -^ jfcft-J-|H , AlertDialog Android jfc & i t i ß'^iU^^ii+Ii-'o & ffl 7-57 tSi^ifc^^^ii^iStÄ-'t AlertDialog. -//hfcflifl : t AlertDialog ^TeitfPS^ Button 3 ^ Button, "'Ttt*}-^ AlertDialog tl j title fr message. ^f fölftitü AlertDialog 6*J it 3 ft ifc 4 JÄ - ^ AlertDialog. ! AlertDialog ft ftH&lpjS:iftÜ'fe ft1*3$#& £ AlertDialog.Builder

Was this article helpful?

0 0

Post a comment