For example, we have a file in our assets folder app/src/main/assets/sample_teas.json. To get an InputStream for reading it, from out Context context, we can try do this:
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.
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.
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.
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.
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
...
Log in to Pass4Success
Sign in:
Report Comment
Is the comment made by USERNAME spam or abusive?
Commenting
In order to participate in the comments you need to be logged-in.
You can sign-up or
login
Celeste
1 years agoChristiane
12 months agoVerona
12 months agoEmogene
1 years agoCasie
1 years agoJanessa
1 years ago