Remove title in Toolbar in appcompat-v7
The documentation of Toolbar says If an app uses a logo image it should strongly consider omitting a title and subtitle. What is the proper way to remove the title? 18 Answers 18
The documentation of Toolbar says If an app uses a logo image it should strongly consider omitting a title and subtitle. What is the proper way to remove the title? 18 Answers 18
I have been able to customize the action bar’s background, logo image and text color using suggestions from these: Android: How to change the ActionBar “Home” Icon to be something other than the app icon? ActionBar text color ActionBar background image The last piece I want to customize is the back button image. It’s grey … Read more
I’m trying to display a Back button on the Action bar to move previous page/activity or to the main page (first opening). And I can not do it. my code. ActionBar actionBar = getActionBar(); actionBar.setHomeButtonEnabled(true); the code is in onCreate. 25 Answers 25
Taking a look at the API diff report for the Android “L” preview, I see that all methods related to navigation modes in the ActionBar class (such as setNavigationMode(), addTab(), selectTab(), &c). are now deprecated. The documentation explains: Action bar navigation modes are deprecated and not supported by inline toolbar action bars. Consider using other … Read more
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? 1 Answer 1
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 this I use the method ActionBar.getHeight() which works only when the ActionBar is shown. When the first activity is created for the first … Read more
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”> <item name=”background”>@drawable/actionbar_bg</item> <item name=”android:background”>@drawable/actionbar_bg</item> <…> </style> <style name=”Theme.MyApp” parent=”@style/Theme.Sherlock.Light”> <item name=”actionBarStyle”>@style/Widget.Styled.ActionBar</item> <item name=”android:actionBarStyle”>@style/Widget.Styled.ActionBar</item> <..> </style> And it works for actionbarsherlock (on versions below honeycomb). But in ICS I have a shadow below actionbar which … Read more
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 icon and the text, and I want to add a “Back Button” in the action … Read more
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 after sometime: setContentView(R.layout.main); getActionBar().show(); But before onCreate is called and splash appears, there is small amount of time when action bar shown. How can I make … Read more
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 action bar while another activity that the app switches to could have ‘page2’ in that screens action bar. 19 … Read more