Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Google Exam Associate-Android-Developer Topic 4 Question 50 Discussion

Actual exam question for Google's Associate Android Developer exam
Question #: 50
Topic #: 4
[All Associate Android Developer Questions]

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:

...

android:id="@+id/action_settings"

android:orderInCategory="100"

android:title="@string/menu_action_settings"

app:showAsAction="never" />

...

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?

Show Suggested Answer Hide Answer

Contribute your Thoughts:

Celeste
6 months ago
Hmm, I was leaning towards A at first, but I think C is the better answer. It makes sense to have the less important items in the overflow menu to keep the app bar clean and uncluttered.
upvoted 0 times
Christiane
6 months ago
C) Never place this item in the app bar. Instead, list the item in the app bar's overflow menu.
upvoted 0 times
...
Verona
6 months ago
A) 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 the overflow menu.
upvoted 0 times
...
...
Emogene
6 months ago
Yeah, I think C is the correct answer too. I like how the question is specific about the meaning of the 'never' value. It's a good way to test our understanding of the Android app bar and menu item behavior.
upvoted 0 times
...
Casie
6 months ago
I agree with Janessa. Having the menu item in the overflow menu makes sense if it's not critical to always display it in the app bar. That way, it's still accessible to the user, but doesn't take up valuable space in the app bar.
upvoted 0 times
...
Janessa
6 months ago
Hmm, this is an interesting question. I think the answer is C - Never place this item in the app bar. Instead, list the item in the app bar's overflow menu. The 'never' value for the 'app:showAsAction' attribute means that the menu item should never be shown as an action in the app bar, but rather in the overflow menu.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77