Setting Android ActionBar Subtitle and Color
http://www.viralandroid.com/2015/12/setting-android-actionbar-subtitle-and-color.html
ActionBar is one of the most important user interface designs in android application. The android action bar is also known as app bar. In this tutorial, I am going to show how to set the android action bar title, subtitle and the text color.
Here is a simple android action bar example that teaches you to add title and subtitle text in action bar with text color.
Related:
Android ActionBar Tabs Example
Android Material Design ActionBar/App Bar: How to Make Custom ActionBar
Android Toolbar Example: How to Use Toolbar as ActionBar
That’s it. Now, run your Getting Started with Android ActionBar Subtitle application which will look like output given below.
Output:
Here is a simple android action bar example that teaches you to add title and subtitle text in action bar with text color.
Related:
Android ActionBar Tabs Example
Android Material Design ActionBar/App Bar: How to Make Custom ActionBar
Android Toolbar Example: How to Use Toolbar as ActionBar
How to Set the Title and Subtitle in Android ActionBar with Text Color
XML Activity File
res/layout/actionbar_title_and_subtitle.xmlJava Activity File
src/AndroidActionBarSubTitle.javaThat’s it. Now, run your Getting Started with Android ActionBar Subtitle application which will look like output given below.
Output:
Setting Android ActionBar Subtitle and Color |