Action bar navigation modes are deprecated in Android L

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

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”> <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

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 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