8,881 questions
609 votes
27 answers
638k views
Display Back Arrow on Toolbar
I'm migrating from ActionBar to Toolbar in my application. But I don't know how to display and set click event on Back Arrow on Toolbar like I did on Actionbar. With ActionBar, I call mActionbar....
602 votes
27 answers
460k views
This Activity already has an action bar supplied by the window decor
Trying to move over my stuff to use Toolbar instead of action bar but I keep getting an error saying java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tyczj.weddingalbum/com.xxx....
377 votes
27 answers
401k views
How do I hide a menu item in the actionbar?
I have an action bar with a menuitem. How can I hide/show that menu item? This is what I'm trying to do: MenuItem item = (MenuItem) findViewById(R.id.addAction); item.setVisible(false); this....
367 votes
31 answers
548k views
Can't Find Theme.AppCompat.Light for New Android ActionBar Support
I am trying to implement the new ActionBar support library that was released by Google a couple days ago. In the past, I have successfully implemented ActionBarSherlock without any issues using the ...
332 votes
15 answers
260k views
Full Screen Theme for AppCompat
I would like to know how can I apply full screen theme ( no title bar + no actionbar ) to an activity. I am using AppCompat library from support package v7. I've tried to applied android:theme="@...
313 votes
29 answers
330k views
ActionBar text color
how can I change the text color of the ActionBar? I've inherited the Holo Light Theme, I'm able to change the background of the ActionBar but I don't find out what is the attribute to tweak to change ...
304 votes
20 answers
554k views
How do I change the background color of the ActionBar of an ActionBarActivity using XML?
Details: I'm extending ActionBarActivity. Eclipse and SDK fully patched as of 2011-11-06. <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14" /> Deployed to Samsung device ...
285 votes
15 answers
249k views
What is the size of ActionBar in pixels?
I need to know the exact size of ActionBar in pixels so to apply correct background image.
269 votes
17 answers
158k views
How to Set a Custom Font in the ActionBar Title?
How (if possible) could I set a custom font in a ActionBar title text(only - not the tab text) with a font in my assets folder? I don't want to use the android:logo option.
260 votes
20 answers
485k views
How to change the text on the action bar
Currently it just displays the name of the application and I want it to display something custom and be different for each screen in my app. For example: my home screen could say 'page1' in the ...
249 votes
17 answers
418k views
How do I change the android actionbar title and icon
I'm trying to do some things on the ActionBar in Android. I've already added new items in the right side of the action bar. How can I change the left side of the action bar? I want to change the ...
247 votes
27 answers
312k views
How to hide action bar before activity is created, and then show it again?
I need to implement splash screen in my honeycomb app. I use this code in activity's onCreate to show splash: setContentView(R.layout.splash); getActionBar().hide(); and this code to show main UI ...
221 votes
14 answers
149k views
Remove shadow below actionbar
I use actionbarsherlock. The piece of code below is responsible for changing it's background to a custom one. <style name="Widget.Styled.ActionBar" parent="Widget.Sherlock.ActionBar"> <...
219 votes
21 answers
199k views
How to get the ActionBar height?
I am trying to get the height of the ActionBar (using Sherlock) every time an activity is created (specially to handle configuration changes on rotation where the ActionBar height might change). For ...
213 votes
1 answer
84k views
What is the difference between Action Bar and newly introduced Toolbar?
After Google introduced Material Design, I have heard about a new widget class called Toolbar. What is the Toolbar, and what is the exact difference between ActionBar and ToolBar?