Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case IDD_SET_DOP_CATEGORY_FLAT_PRICE:
- builder = new AlertDialog.Builder(this);
- builder.setTitle("Cтоимость до:");
- final EditText input = new EditText(this);
- builder.setView(input);
- builder.setPositiveButton("Дальше", new DialogInterface.OnClickListener() {
- public void onClick(DialogInterface dialog, int whichButton) {
- if (!TextUtils.isEmpty(input.getText().toString())) {
- String value = input.getText().toString();
- GoToCreateRecordActivity();
- } else {
- showDialog(IDD_SET_DOP_CATEGORY_FLAT_PRICE);
- }
- }
- });
- builder.setPositiveButton("Дальше", null);
- dialog = builder.create();
- dialog.show();
- dialog.getButton(DialogInterface.BUTTON_POSITIVE).setOnClickListener(myOnClickListener);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement