Inside the onCreate method, we created a GridLayout named grid. Write the code so that gridLayout is the View showing in this activity.
public void onCreate( Bundle savedInstanceState )
{
// The GridLayout grid has been created
// Your code goes here
}
Correct Answer:
Verified
Q16: Inside MainActivity.java, write the code to retrieve
Q17: Inside activity_main.xml, we define a Button element;
Q18: Inside MainActivity, we coded a private class
Q19: Assign the width of the current screen
Q20: Write a code that creates a GridLayout
Q22: Write a code that creates a button
Q23: Write a code that creates a TextView
Q24: Write a code that creates a 5
Q25: You are building the GridLayout grid programmatically.
Q26: You have created the private class BH,
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents