Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnClickListener saveButtonListener = new OnClickListener()
- // create a new Button and add it to the ScrollView
- {
- @Override
- public void onClick(View v)
- {
- AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);
- builder.setView(getLayoutInflater().inflate(R.layout.custom_dialog_add, null));
- builder.create();
- View view = getLayoutInflater().inflate(R.layout.custom_dialog_add, null);
- builder.setPositiveButton(R.string.OK, null);
- AlertDialog Custom_dialog_add = builder.create();
- Custom_dialog_add.show();
- InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
- imm.showSoftInput(YOUREDITTEXTHERE, InputMethodManager.SHOW_IMPLICIT);
Add Comment
Please, Sign In to add comment