VERTICAL) layoutName.addView(editTextName1) // displays the user input bar tView(layoutName) Ĥ. Code the formatting for your dialog (example: linear layout) tTitle(" Alert Dialog Title") // titles can be used regardless of a custom layout or not tView(editTextName1) LinearLayout layoutName = new LinearLayout(this) tOrientation(LinearLayout. Note: a single alert dialog can have more than one input bar! simply duplicate the code below with new variables! AlertDialog.Builder alertName = new AlertDialog.Builder(this) final EditText editTextName1 = new EditText(ClassName.this) ģ. Construct your alert dialog and user input bar (EditText)
0 Comments
Leave a Reply. |