Chapter 2 - Simple Controls - Exercise

In Java code, the default font size unit of the setTextSize method is ( ).
D.sp

The attribute name of GridLayout that specifies the number of grid rows is ( ).
B.rowCount

Image button ImageButton is derived from ( ).
D.ImageView

In the button control, the name of the property that puts the picture to the right of the text is ( ).
A. drawableRight

When the image view adopts the zoom type ( ), the image may be stretched and deformed.
D.FIT_XY

Android's control classes are all derived from ViewGroup. ( )
B. Wrong

Android's color values ​​are jointly defined by alpha transparency and RGB primary colors. ( )
A. Yes

The resource file name that stores string definitions in the res/values ​​directory is colors. ( )
B. Wrong

The scroll view ScrollView defaults to subordinate layouts arranged horizontally. ( )
B. Wrong

Linear layout LinearLayout defaults to lower-level controls arranged in the horizontal direction. ( )
A. Yes

dp refers to device-independent display units. ( )
A. Yes

In a relative layout, if the reference object of the subordinate view is not set, the subordinate view will be displayed in the center of the layout by default. ( )
B. Wrong

English on button controls displays uppercase letters by default. ( )
A. Yes

By default, the button control will trigger a long press event after being pressed for more than 50 milliseconds. ( )
B. Wrong

When linear layout uses the attribute layout_weight to set the size weight of subordinate controls, set the width and height of subordinate controls to 0px. ( )
A. Yes

Guess you like

Origin blog.csdn.net/Qian280101/article/details/131328676