All Questions

238
votes
15answers
409163 views

How do I change the background color of the ActionBar of an ActionBarActivity using XML?

Details: I'm extending ActionBarActivity. Eclipse and SDK fully patched as of 2011-11-06. <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14" /> Deployed to Samsung device ...
230
votes
18answers
217223 views

ActionBar text color

how can I change the text color of the ActionBar? I've inherited the Holo Light Theme, I'm able to change the background of the ActionBar but I don't find out what is the attribute to tweak to change ...
218
votes
14answers
121453 views

How to Set a Custom Font in the ActionBar Title?

How (if possible) could I set a custom font in a ActionBar title text(only - not the tab text) with a font in my assets folder? I don't want to use the android:logo option.
323
votes
31answers
480132 views

Can't Find Theme.AppCompat.Light for New Android ActionBar Support

I am trying to implement the new ActionBar support library that was released by Google a couple days ago. In the past, I have successfully implemented ActionBarSherlock without any issues using the s...
155
votes
11answers
75042 views

How to force use of overflow menu on devices with menu button

I'd like to have all of the menu items that don't fit into the ActionBar go into the overflow menu (the one that is reached from the Action Bar not the menu button) even on devices that do have a Menu...
153
votes
20answers
138670 views

getActionBar() returns null

I'm having an odd problem. I am making an app with targetsdk 13. In my main activity's onCreate method i call getActionBar() to setup my actionbar. This works fine when running on the Android 3.2 em...
187
votes
13answers
323108 views

How to change the text on the action bar

Currently it just displays the name of the application and I want it to display something custom and be different for each screen in my app. For example: my home screen could say 'page1' in the actio...
56
votes
13answers
131864 views

How to change the background color of Action Bar's Option Menu in Android 4.2?

I'd like to change the background color of the option (overflow) menu in Android 4.2. I have tried all the methods but it is still showing the default color set by the theme. I used the following code...
180
votes
8answers
172584 views

How to customize the back button on ActionBar

I have been able to customize the action bar's background, logo image and text color using suggestions from these: Android: How to change the ActionBar "Home" Icon to be something other than...
53
votes
3answers
107147 views

How can I implement custom Action Bar with custom buttons in Android?

I want to implement custom ActionBar which must look like this: So questions: How can I implement a button like custom view: just some image? How can I draw a line on the top of the ActionBar? An...

Previous Next