Tag: android-actionbar

Blank title in action bar

Is it possible to remove title bar which I think is ugly and doesn’t fit in my application but still use actionbar? After I call requestWindowFeature(Window.FEATURE_NO_TITLE | Window.FEATURE_ACTION_BAR); the title bar stays but piece of my view is gone(cant scroll up) Is it possible to get rid of title bar but still keep actionbar, if […]

Is it possible to make ActionBar tabs height higher than ActionBar height? If so, how?

I’m using ActionBarSherlock In a similar question about ActionBar tabs height, I used: <style name=”YourTheme” parent=”@android:style/Theme.Holo”> <item name=”android:actionBarStyle”>@style/blah1</item> <item name=”android:actionBarTabStyle”>@style/blah2</item> <item name=”android:actionBarSize”>80dp</item> .. </style> And I assumed I could use this specific attribute on each style instead <item name=”android:actionBarSize”>80dp</item> And individually adjust ActionBar height from ActionBar tabs height. But it doesn’t work. So, is this […]

Actionbar dropdown click event

I have dropdown list in actionbar as navigation list. Using ActionBar.OnNavigationListener and onNavigationItemSelected to detect when user has clicked on item in actionbar dropdown navigation list and that works fine. However, onNavigationItemSelected is not called if user has clicked on the same item as the one which is currently selected in dropdown list! (I need […]

Gmail tablet like Actionbar items

I’m trying to build an app with a split actionbar/toolbar like in the Gmail app. Is there any view element for this behaviour or do I have to write such a toolbar myself? The search icon is moving with the master fragment when opening the slidingDrawer.

mimicking the navigation drawer of youtube/gmail app

Background In the recent months Google released the Youtube app with navigation drawer (AKA sliding menu). it has many cool features that i wish to have on an app i’m working on. the features are: touch anywhere to start sliding. moving icon on the “up” button of the action bar when switching modes. content area […]

How to set the height of the action bar programatically

I’m implementing a custom view inside the android action bar. The problem is that under some conditions I need to double the height of the action bar to allow the view to be displayed completely. I can set the height using a custom theme, but this height is static. Is is possible to change the […]

Action mode close button text color

I see to set the text color of the action mode “done” / “close” button. This is what I’ve tried: <item name=”android:actionModeCloseButtonStyle”>@style/ActionModeCloseButton</item> …. <style name=”ActionModeCloseButton” parent=”android:style/Widget.Holo.ActionButton.CloseMode”> <item name=”android:textColor”>@android:color/white</item> </style> but is has no effect. Note that on JB, it’s enough that I make the ActionModeCloseButton style’s parent the regular holo theme. It works fine there […]

Search view close icon appearing disabled rather than white

Whenever I type into my search view the close button (X) appears to be disabled for some reason rather than appearing in the colour white. How can this error be resolved so that it appears white? @Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { inflater.inflate(R.menu.menu_search_list, menu); MenuItem item = menu.findItem(R.id.action_search); SearchView searchView = (SearchView) MenuItemCompat.getActionView(item); […]

Android 4.2.2 makes actionbar icon and title clickable as if part of the same button

Before 4.2.2, only the logo was clickable. As of 4.2.2, the title of the actionbar is clickable along with the logo – both as if part of the same button. You can see an example of this behavior in the Google Reader app – if you have a 4.2.2 device (See screenshot attached). How do […]

app:showAsAction vs android:showAsAction

I am building an Android app and want to have a button always visible on the actionBar. I followed this guide and others, but none of them seem to solve my problem (although they are very close I guess…). I have the package “app” and use app:showAsAction=”always”. No error is shown, but no button on […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.