Tag: android-actionbar

How do you change the 'Done' text in a CAB?

Android’s documentation says a lot about CAB’s, but nothing about how to change the text for “Done”. Does anyone know how to? Other Links: http://developer.android.com/design/patterns/selection.html http://developer.android.com/guide/topics/ui/menus.html#CAB

Have the split ActionBar display twice as many icons

I’d like to have an app layout as the one they used for Gmail. They have the actionbar that has icons (on my device it has the app logo for up navigation, and a custom view for selecting priority inbox/inbox/etc), but there is also some kind of split ActionBar because at the bottom I have […]

Hide only the Action bar on Scroll not action bar tabs

I am getting an issue at trying to hide the action bar while scrolling down.Then while scrolling up,the action bar have to shown again. For Eg: I referred this Tutorial.Here you can see the output and respective codes related to hide and show the action bar. I am showing the output what I get it […]

Android – Action Bar doesn't show up using Theme.AppCompat

I am trying to use Theme.AppCompat, but when I do the Action Bar simply disappear. There is no errors or whatsoever. The thing is I’m using this exact setting on two more projects and they work just fine, not sure what changed. I also tried changing support library version, parent theme, cleaning the project, rebuilding […]

AppCompat v7 Toolbar Up/Back Arrow Not Working

I have two fragments in an activity. When fragment A is showing, I want the navigation drawer burger icon to show and the navigation drawer to work. When fragment B is showing, I want the back arrow to show and when it’s clicked do an up navigation. However, I can’t seem to get the new […]

KeyListener on SearchView in Honeycomb ActionBar does not work

Here is my code. The onKey() method is never called when typing into the search box. Am I doing something wrong in setting up the listener? I have a breakpoint in the onKey() method, which is how I know it doesn’t fire. @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.locations_map_menu, menu); ActionBar ab = getActionBar(); ab.setBackgroundDrawable(getResources().getDrawable(R.drawable.actionbar)); […]

ActionBar custom title as ImaveView instead of TextView

I’ve trying to work around this on the actionbar but from What I can see the title is basicly a TextView but I need to place an image instead of plain text. I try to set it up into the Style themes.xml as this: <item name=”android:actionBarStyle”>@style/MyActionBar</item> And then I defined this style <style name=”MyActionBar” parent=”@android:style/Widget.Holo.Light.ActionBar”> […]

android actionbar – removing the actionbar dynamically

I want to use an activity in two manners It shows a list of items which can be edited, new ones added etc It shows the list of items in order to choose one. As the main logic of the Activity is to display the list of items I would like to handle these two […]

set icon at the end of toolbar

I want to set an icon at the the end of my toolbar,which start another activity. My toolbar portion <android.support.v7.widget.Toolbar xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:app=”http://schemas.android.com/apk/res-auto” android:id=”@+id/toolbar” android:layout_width=”match_parent” android:layout_height=”@dimen/abc_action_bar_default_height_material” android:background=”#2B4AE0″ app:theme=”@style/ToolBarStyle”> <TextView android:id=”@+id/headerText” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:textAppearance=”@android:style/TextAppearance.Theme” android:textColor=”@android:color/white” /> <RelativeLayout android:id=”@+id/notification” android:layout_width=”50dp” android:layout_height=”match_parent” android:clickable=”true” android:gravity=”center” /> <ImageView android:layout_width=”25dp” android:layout_height=”25dp” android:layout_centerHorizontal=”true” android:layout_centerVertical=”true” android:src=”@drawable/bell_icon” /> </RelativeLayout> </android.support.v7.widget.Toolbar> I tried android:layout_alignParentEnd=”true” and setting […]

Using Navigation Drawer in older android

Can I use Navigation Drawer in older android like GingerBread? And If Yes , How can I use it without ActionBar as ActionBar is not available for Gingerbread..

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