Question: 1. Inside the XML snippet, below activity_main.xml, add two lines of XML so that the dimensions (width and height) of the TextView are just enough
1. Inside the XML snippet, below activity_main.xml, add two lines of XML so that the dimensions (width and height) of the TextView are just enough to hold the text inside the
TextView.
/> 2.Inside the onCreate method, fill in the code to set the layout and GUI defined in activity_main.xml. public void onCreate( Bundle savedInstanceState ) { // Your code goes here } 3. Inside an activity element of the AndroidManifest.xml file, write the code so that this activity is supported only in vertical orientation. android:name = ".MainActivity" 4. Inside activity_main.xml, we define a Button element; when the user clicks on the button, we want the method go (from the MainActivity class, whose content view is defined in activity_main.xml) to execute. Write the code for it.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
