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. 17 Answers 17
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. 17 Answers 17
I need to know the exact size of ActionBar in pixels so to apply correct background image. 14 Answers 14
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 with Android 2.3.3 Application has android:theme=”@android:style/Theme.Light” Issue: application is light, but ActionBar is blue with grey icons, hardly visible against the blue background color. I also want the ActionBar to be light, so they grey … Read more
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 the text color. Ok, I’m able to change the text color with the attribute android:textColorPrimary but it … Read more
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=”@android:style/Theme.NoTitleBar.Fullscreen” to my specific activity but it crashed. I think it’s because my application theme is like this. <style … Read more
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 same method listed on Google Developer’s Support Library Setup page – using the guide on how to include the resources (which is similar … Read more
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.invalidateOptionsMenu(); 26 Answers 26
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.xxx.MainActivity}: java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar … Read more
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.setDisplayHomeAsUpEnabled(true). But there is no the similar method like this. Has anyone ever faced this situation and somehow found a way … Read more
What the warning is telling you is that actionBarColor shouldn’t be a global variable (i.e. a field), because it’s only used in one method (onCreate). This is good advice: you should always minimize the scope of your variables, because it improves readability and reduces possibilities for programming errors. To get rid of the warning, fix the problem … Read more