Tag: android-actionbar

Show dropdown programatically in ActionBar / ActionBarSherlock

I have an activity using ActionBarSherlock with ActionBar.NAVIGATION_MODE_LIST. When entering the page I want the spinner in the action bar to expand programmatically after it’s populated with items so the user needs to pick an item. As of now the first item in the adapter is selected automatically. I can’t figure out a nice way […]

Fullscreen activity wizard activity. How do I stop actionbar from showing when I interact with device?

When I create an activity using the fullscreen activity wizard it creatre a fullscreen activity but whenever I click anywhere on the screen the actionbar shows for a few seconds. How can I stop it from doing so? Full code of FullScreenActivity.java /** * An example full-screen activity that shows and hides the system UI […]

Contextual Action Bar in Honeycomb

I’m looking to copy the action bar implementation from the gmail app in Honeycomb Unfortunately I can’t post an image because I’m new here. Basically, when you select an email or more your action bar animates into a different action bar with: 1.Contextual buttons 2.A new “Done” button appears over the Home icon. Does anyone […]

Marked as private warning after changing colour of up arrow

After defining a custom colour for the back arrow in the action bar, a warning is then returned. What can be done to get rid of this warning? final Drawable upArrow = ContextCompat.getDrawable(this, R.drawable.abc_ic_ab_back_mtrl_am_alpha); upArrow.setColorFilter(Color.BLUE, PorterDuff.Mode.SRC_ATOP); actionBar.setHomeAsUpIndicator(upArrow); The resource @drawable/abc_ic_ab_back_mtrl_am_alpha is marked as private in com.android.support:appcompat-v7

Action Bar Tabs using ViewPager with Navigation Drawer

Requirement:- Action Bar Tabs using ViewPager with Navigation Drawer . I can create a Navigation Drawer example Action Bar Tabs using ViewPager separately. But when I try to use both at once I am having issue. I can create Navigation Drawer using fragments and Action Bar Tabs using Fragment. But the initial Activity of the […]

new ActionBarDrawerToggle when using AppCompatActivity

Today Google updated the AppCompat library to version 22.1.0, and we can now use AppCompatActivity instead of ActionBarActivity. This means we no longer need to have a Toolbar view in our activity layout. The problem is that in order to create a Drawer toggle button, I cannot use new ActionBarDrawerToggle anymore, because it expects a […]

ActionBarDrawerToggle v7 or v4?

I’m trying use ActionBarDrawerToggle in my CustomDrawerLayout. When I try import import android.support.v4.app.ActionBarDrawerToggle; it is deprecated. When I try import import android.support.v7.app.ActionBarDrawerToggle; the constructor not accept five arguments and the icon not changed in ActionBar. My question is I should use v4 deprecated or v7 with four arguments ? here. v4 /**v4 works with 5 […]

How to combine Navigation Drawer and Spinner

I need your advice. In Google+ App for Android, there are two elements, that I don’t know how to put together. One is “Navigation Drawer” and second is “Action Bar Navigation Spinner”. Do you know how these two elements put together? Thank you very much for your advice! P.S. I know, I’m lame 🙂 (and […]

How to “install” Action Bar Sherlock?

I’m trying to build the sample project “Action Bar Styled” using the Action Bar Sherlock. I download the .zip file containing ABS here http://actionbarsherlock.com/ but I can’t figure out where to unzip so that it will appear on Project>Properties>Add library. Can someone give me an hand? Also, I read somewhere (can’t find it now, sorry) […]

Android action bar title ellipsis

I have an ellipsis in the title of action bar on my android application even though the length is well within 10-15 chars. I am using Navigation Drawer and it works fine but after a few switches it adds ellipsis to the title. I have not used any custom xml to format my action bar. […]

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