Podcast
Questions and Answers
How is a Button created in Android UI?
How is a Button created in Android UI?
- By defining a Button class in Java
- Using the tag (correct)
- Using the android:clickable attribute
- By setting a TextView and making it clickable
What is the primary function of an EditText in Android UI?
What is the primary function of an EditText in Android UI?
- To allow user input in the form of text (correct)
- To style the UI layout
- To display static text
- To represent other controls
What does a TextView do in Android UI?
What does a TextView do in Android UI?
- Display static text (correct)
- Accept user input
- Allow user to specify input
- Set position for child elements
Which attribute is used to set the right side position of a widget in a RelativeLayout?
Which attribute is used to set the right side position of a widget in a RelativeLayout?
What is the default orientation of a LinearLayout in Android UI?
What is the default orientation of a LinearLayout in Android UI?
What is the purpose of android:gravity attribute in Android UI?
What is the purpose of android:gravity attribute in Android UI?
What attribute allows us to set the default selection for a RadioButton?
What attribute allows us to set the default selection for a RadioButton?
In Android development, what is used to handle multiple selections in CheckBoxes by default?
In Android development, what is used to handle multiple selections in CheckBoxes by default?
What method is used to retrieve the selected RadioButton in a RadioGroup?
What method is used to retrieve the selected RadioButton in a RadioGroup?
In Android CheckBoxes, what is incremented when a checkbox is checked?
In Android CheckBoxes, what is incremented when a checkbox is checked?
To display an image using an ImageView in Android, which attribute is used?
To display an image using an ImageView in Android, which attribute is used?
What is the purpose of 'android:hint' attribute in EditText?
What is the purpose of 'android:hint' attribute in EditText?
Which attribute is used in Android to set the text color of a TextView?
Which attribute is used in Android to set the text color of a TextView?
What does the 'btnclrobj' in the Java code represent?
What does the 'btnclrobj' in the Java code represent?
What is the primary function of a RadioGroup in Android?
What is the primary function of a RadioGroup in Android?
Which attribute is used to specify the layout width in Android?
Which attribute is used to specify the layout width in Android?
What does the 'inputType' attribute do in EditText?
What does the 'inputType' attribute do in EditText?
Flashcards are hidden until you start studying