-
Notifications
You must be signed in to change notification settings - Fork 371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to show on action bar three dots view? #61
Comments
You have to navigate under the toolbar child views and look for the three dots menu id.
|
What is the overflow menu item id?
On Wed, Jan 18, 2017, 16:25 Lucas Diego ***@***.***> wrote:
You have to navigate under the toolbar child views and look for the three
dots menu id.
For example:
private View getToolbarMenuView(int id) {
for (int toolbarChildIndex = 0; toolbarChildIndex < toolbar.getChildCount(); toolbarChildIndex++) {
View view = toolbar.getChildAt(toolbarChildIndex);
if (view instanceof ActionMenuView) {
ActionMenuView menuView = (ActionMenuView) view;
// All menu items
for (int menuChildIndex = 0; menuChildIndex < menuView.getChildCount(); menuChildIndex++) {
ActionMenuItemView itemView = (ActionMenuItemView) menuView.getChildAt(menuChildIndex);
if (itemView.getId() == id) {
return itemView;
}
}
}
}
return null;
}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#61 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE-kCx8T3716OfTj0ebOoxDPLw1uHkYMks5rTgu2gaJpZM4LdsuH>
.
--
Morteza Rastgoo,
*Android Developer* at *Fax.ir* <http://fax.ir/>
moritech.ir
|
Take a look at the Android source code! google it! |
Of course I've been trying to find it, but no luck.
On Wed, Jan 18, 2017, 20:29 Lucas Diego ***@***.***> wrote:
Take a look at the Android source code! google it!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#61 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE-kC4w8pfpuCffsclG4kM98xt41FYw4ks5rTkT2gaJpZM4LdsuH>
.
--
Morteza Rastgoo,
*Android Developer* at *Fax.ir* <http://fax.ir/>
moritech.ir
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to show the showcaseView on action bar three dots?
The text was updated successfully, but these errors were encountered: