Here is my code:
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); context = this; AlertDialog alertChoice = new AlertDialog.Builder(context).create(); alertChoice.setTitle("Title"); alertChoice.setView(ViewDialogScreen("Test")); alertChoice.show(); } private View ViewDialogScreen(String strText) { LinearLayout llay = new LinearLayout(context); llay.setLayoutParams(new LayoutParams(320, 400)); TextView tv = new TextView(context); tv.setText(strText); llay.addView(tv); return llay; } 
I got the output like the above.
- I need to show the
AlertDialogin full screen / 95% of the Screen size. - I need to handle more fields in the
Dialog. - How do I enable the
HorizontalScrollviewin theAlertDialog?