ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 117 - Associate Android Developer discussion

Report
Export

For example, suppose that in a XML file (res/menu/menu_main.xml as an example), where menu items are described, we have such item:

A.
.<itemandroid:id="@+id/action_settings" android:orderInCategory="100"android:title="@string/menu_action_settings" app:showAsAction="never" />
Answers
A.
.<itemandroid:id="@+id/action_settings" android:orderInCategory="100"android:title="@string/menu_action_settings" app:showAsAction="never" />
B.
.Attribute "app:showAsAction" shows when and how this item should appear as an action item in the app bar. What value "never" in this attribute means?
Answers
B.
.Attribute "app:showAsAction" shows when and how this item should appear as an action item in the app bar. What value "never" in this attribute means?
C.
Only place this item in the app bar if there is room for it. If there is not room for all the items marked by this value, the items with the lowest orderInCategory values are displayed as actions, and the remaining items are displayed in theoverflow menu.
Answers
C.
Only place this item in the app bar if there is room for it. If there is not room for all the items marked by this value, the items with the lowest orderInCategory values are displayed as actions, and the remaining items are displayed in theoverflow menu.
D.
Also include the title text (defined by android:title) with the action item. You can include this value along with one of the others as a flag set, by separating them with a pipe.
Answers
D.
Also include the title text (defined by android:title) with the action item. You can include this value along with one of the others as a flag set, by separating them with a pipe.
E.
Never place this item in the app bar. Instead, list the item in the app bar's overflow menu.
Answers
E.
Never place this item in the app bar. Instead, list the item in the app bar's overflow menu.
F.
Always place this item in the app bar. Avoid using this unless it's critical that the item always appear in the action bar. Setting multiple items to always appear as action items can result in them overlapping with other UI in the app bar.
Answers
F.
Always place this item in the app bar. Avoid using this unless it's critical that the item always appear in the action bar. Setting multiple items to always appear as action items can result in them overlapping with other UI in the app bar.
G.
The action view associated with this action item (as declared by android:actionLayout or android:actionViewClass) is collapsible.
Answers
G.
The action view associated with this action item (as declared by android:actionLayout or android:actionViewClass) is collapsible.
Suggested answer: C

Explanation:

Reference:

https://developer.android.com/guide/topics/ui/menus

asked 18/09/2024
M.G.Georgantzis QUALCO
30 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first