SHARE
TWEET

Untitled

a guest Jan 20th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top