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
8 days 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
...
Emogene
9 days 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
10 days 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
11 days 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