working in Android 2.1. Сalling dialogue.
final Dialog pricewc = new Dialog(this);
LayoutInflater inf = getLayoutInflater();
View layoutdialog = inf.inflate(R.layout.pricewc,
(ViewGroup)findViewById(R.id.pricewcadd));
pricewc.setContentView(layoutdialog);
final EditText textdialog =
(EditText)pricewc.findViewById(R.id.pricewcadd);
pricewc.setTitle(R.string.dialog_add_wc_coast);
Button bn = (Button)pricewc.findViewById(R.id.buttonAdd);
Button bn_cansel =
(Button)pricewc.findViewById(R.id.buttonAdd_cansel);
bn.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
showDialog(ExitActvitiFinal);
pricewc.cancel();
}
});
bn_cansel.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
pricewc.cancel();}
});
pricewc.setCancelable(false);
pricewc.show();
return null ;
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment