All Questions
7 questions
0
votes
1
answer
1k
views
app:showAsAction is always showing "never" attribute
I'm just a beginner so I was trying to make an Android app specifically to learn about menu.xml and ActionBar. So I'm trying to add MenuItems, here's my menu.xml code:
<?xml version="1.0" ...
0
votes
1
answer
3k
views
Toolbar/ActionBar menu items not clickable unless showAsAction is Never
I am having a weird experience with android. I have ToolBar (inside a CollapsingToolbarLayout)
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
And here is the ...
2
votes
2
answers
2k
views
Apply a layout to ActionBar menu item and make it clickable
I am trying to use icon fonts with ActionBar menu item using a custom layout. Applying a layout to the menu item does solve the problem and the icon font renders perfect but doing so make the menu ...
0
votes
1
answer
168
views
Android use MenuItem to hide LinearLayout
I am new on android.
What I want to do is, when I press the icon on Actionbar the LinearLayout is showing.
Here's the picture
As you can see, there's a magnifier icon.
when I press that icon, the ...
19
votes
2
answers
9k
views
OnMenuItemSelected isn't called when layout is set for menu item
I have a menu which is inflated from main_menu.xml:
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/act_sync"
android:...
0
votes
1
answer
172
views
How do I add a button as a menu item?
This is probably very easy. I just can't seem to get it done. How do I add a button as a menu item? So far I am only able to add texts. Here is what I have:
<?xml version="1.0" encoding="utf-8"?&...
15
votes
4
answers
45k
views
How to change the position of menu items on actionbar
I'm developing one application in which I have to add a custom layout on actionbar. Adding the custom layout is done, but when I'm adding the menu items on actionbar my custom layout changes it's ...