Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. final EditText inputOne = new EditText(MainActivity.this);
  2. final EditText inputTwo = new EditText(MainActivity.this);
  3.  
  4. LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(
  5. LinearLayout.LayoutParams.WRAP_CONTENT,
  6. LinearLayout.LayoutParams.WRAP_CONTENT
  7. );
  8.  
  9. AlertDialog.Builder alertDialog = new AlertDialog.Builder(this);
  10. inputOne.setLayoutParams(lp);
  11. inputOne.setLayoutParams(lp);
  12.  
  13. alertDialog.setView(inputOne);
  14. alertDialog.setView(inputTwo);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement