
If designing the user interface using the Designer tool in Design mode, be sure to edit the XML afterwards to add the onClick handler property for the button1 view, and note the the layout width property of the EditView component has been set to 200dp: ĭesigning the User Interface Layout for ActivityB Note that the “Ask Question” text displayed on the button view has been extracted to a string resource named ask_text.


Either design the layout in Design mode, or switch to Text mode and enter the following XML. Using the Project tool window, locate the activity_a.xml resource file for ActivityA (located under app -> res -> layout) and double click on it to load it into the Android Studio Designer tool. The user interface for ActivityA will consist of a RelativeLayout view containing EditText (Plain Text), TextView and Button views named editText1, textView1 and button1 respectively. Report this ad Designing the User Interface Layout for ActivityA
