Skip to main content
609 votes
27 answers
638k views

I'm migrating from ActionBar to Toolbar in my application. But I don't know how to display and set click event on Back Arrow on Toolbar like I did on Actionbar. With ActionBar, I call mActionbar....
Huy Duong Tu's user avatar
  • 7,978
602 votes
27 answers
460k views

Trying to move over my stuff to use Toolbar instead of action bar but I keep getting an error saying java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tyczj.weddingalbum/com.xxx....
tyczj's user avatar
  • 74.8k
377 votes
27 answers
401k views

I have an action bar with a menuitem. How can I hide/show that menu item? This is what I'm trying to do: MenuItem item = (MenuItem) findViewById(R.id.addAction); item.setVisible(false); this....
Stir Zoltán's user avatar
  • 4,063
367 votes
31 answers
548k views

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 ...
Brandon Enriquez's user avatar
332 votes
15 answers
260k views

I would like to know how can I apply full screen theme ( no title bar + no actionbar ) to an activity. I am using AppCompat library from support package v7. I've tried to applied android:theme="@...
Ye Lin Aung's user avatar
  • 11.5k
313 votes
29 answers
330k views

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 ...
rnoway's user avatar
  • 8,591
304 votes
20 answers
554k views

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 ...
user77115's user avatar
  • 5,597
285 votes
15 answers
249k views

I need to know the exact size of ActionBar in pixels so to apply correct background image.
Eugene's user avatar
  • 60.4k
269 votes
17 answers
158k views

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.
user avatar
260 votes
20 answers
485k views

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 ...
dootcher's user avatar
  • 3,079
249 votes
17 answers
418k views

I'm trying to do some things on the ActionBar in Android. I've already added new items in the right side of the action bar. How can I change the left side of the action bar? I want to change the ...
Allan Ramírez's user avatar
247 votes
27 answers
312k views

I need to implement splash screen in my honeycomb app. I use this code in activity's onCreate to show splash: setContentView(R.layout.splash); getActionBar().hide(); and this code to show main UI ...
Ilya Izhovkin's user avatar
221 votes
14 answers
149k views

I use actionbarsherlock. The piece of code below is responsible for changing it's background to a custom one. <style name="Widget.Styled.ActionBar" parent="Widget.Sherlock.ActionBar"> <...
Michał Klimczak's user avatar
219 votes
21 answers
199k views

I am trying to get the height of the ActionBar (using Sherlock) every time an activity is created (specially to handle configuration changes on rotation where the ActionBar height might change). For ...
znat's user avatar
  • 13.6k
213 votes
1 answer
84k views

After Google introduced Material Design, I have heard about a new widget class called Toolbar. What is the Toolbar, and what is the exact difference between ActionBar and ToolBar?
김준호's user avatar
  • 16.3k

15 30 50 per page
1
2 3 4 5
593