Guest User

Untitled

a guest
Jan 20th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. public OnClickListener saveButtonListener = new OnClickListener()
  2. // create a new Button and add it to the ScrollView
  3. {
  4. @Override
  5. public void onClick(View v)
  6. {
  7.  
  8. AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);
  9. builder.setView(getLayoutInflater().inflate(R.layout.custom_dialog_add, null));
  10. builder.create();
  11.  
  12. View view = getLayoutInflater().inflate(R.layout.custom_dialog_add, null);
  13.  
  14. builder.setPositiveButton(R.string.OK, null);
  15. AlertDialog Custom_dialog_add = builder.create();
  16. Custom_dialog_add.show();
  17.  
  18. InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
  19. imm.showSoftInput(YOUREDITTEXTHERE, InputMethodManager.SHOW_IMPLICIT);
Add Comment
Please, Sign In to add comment