Essay
Inside an Activity class, and assuming that a GridLayout named gl has been instantiated, write the code to create a Button and add it to gl, setting its width to the width of the screen and its height to 100.
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q117: config is a Configuration reference. Write one
Q118: res is a Resources reference. Write one
Q119: Assuming that we have correctly coded the
Q120: The _ class encapsulates a bitmap.
Q121: Write the code to get a Configuration
Q122: We can use the _ subclass of
Q123: We have a camera app activity, and
Q124: Inside the AndroidManifest.xml file, add an activity
Q125: The getAction method of the MotionEvent class
Q127: Inside the XML snippet below activity_main.xml, add