Tag: android-actionbar

Split Action Bar only in Action Mode (CAB)

It is possible to have a split Action Bar only in Action Mode? My application have only the top action bar, but it’s Contextual Action Bar needs to be splitted in two (top/bottom). I found this: The contextual action bar is not necessarily associated with the action bar. They operate independently, even though the contextual […]

Hardware menu popup issue with Appcompat

I implemented in my application the (not so) new Appcompat theme with DarkActionBar. Everything works fine, except the popup from hardware menu button (or long press the recent button), that is rendered with white text. Popup result: Toolbar: http://i.stack.imgur.com/huWpm.png Hard menu: http://i.stack.imgur.com/o5fmL.png I solved an old issue with the popup from Action Mode, adding the […]

Merge Android actionbar with menu tabs

We are trying to create an application for Android. And we are wondering if it’s possible to merge the menu with the actionbar in potrait mode, like the way it is in Landscape mode in 4.0 and on Honeycomb tablets (see screenshots below). Is this possible? If yes, how?

Android- adding view to layout causing layout to be in front of ActionBar

I have a view in which I’m creating a PopupWindow. In this PopupWindow, I have a text box (EditText). When clicking to edit the text, the keyboard opens and the whole view goes up, but the top of the view goes under the action bar view smoothly. So far so good. I now have added […]

ActionBar List Navigation Overlapping Fragments

I’m trying to implement the Android Action Bar in list navigation mode, it successfully changes fragments when an item is selected from the list, but the fragments overlap and I can see the content of the previous one still on the screen when the second is selected. Here’s my code for the Activity’s OnCreate and […]

Android Actionbar Tabs on bottom of screen

I agree before-hand with anyone who wants to make the argument that tabs should be at the top of the screen, but I can’t control the requirements for my app 🙂 . I have to build an app with tabs at the bottom of the screen. I’m using SDK 14 and Actionbars. Is this even […]

How to change the overflow icon of the contextual action bar without changing it for the standard action bar?

My app’s theme looks like shown in the following screenshot: As the theme is based on Theme.Holo.Light which contains dark action bar texts and overflow icon, I adjusted the overflow icon using the following style: <style name=”ActionBar.Light” parent=”android:style/Widget.Holo.ActionBar”> <item name=”android:background”>@color/highlight</item> <item name=”android:titleTextStyle”>@style/TextAppearance.ActionBar.Title.Light</item> <item name=”android:subtitleTextStyle”>@style/TextAppearance.ActionBar.Subtitle.Light</item> </style> … <style name=”Theme.Light” parent=”@android:style/Theme.Holo.Light”> … <item name=”android:actionBarStyle”>@style/ActionBar.Light</item> <item name=”android:actionOverflowButtonStyle”>@android:style/Widget.Holo.ActionButton.Overflow</item> … […]

SearchView like Google Play Video App

I’m trying to implement search interface in actionbar like in Google Play Video App (https://play.google.com/store/apps/details?id=com.google.android.videos). I think it is SearchView widget but don’t understand how do same customization: add up button inside it, set background, and expand the full width of actionbar

LeftNavBar creates black bar at the top of the activity

I’m trying to incorporate Google’s LeftNavBarLibrary into my application. When I load the nav bar I end up with a black bar across the top of the activity. The bar appears to be taking up the space a traditional actionbar would occupy. Does anyone know where the bar is coming from or how to remove […]

Android Actionbar set width to the tabs

Currently I’m busy on a WHMCS app for my company. As navigation I want to use the Tab functionality in the actionbar. However, how can you edit the width of a tab? I need 5 together on one screen without the need to scroll. I already tried it with some styles like this: <style name=”AppBaseTheme” […]

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