--ADVERTISEMENT--

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

How to Set the Title and Subtitle in Android ActionBar with Text Color


XML Activity File

res/layout/actionbar_title_and_subtitle.xml

Java Activity File

src/AndroidActionBarSubTitle.java

That’s it. Now, run your Getting Started with Android ActionBar Subtitle application which will look like output given below.

Output:

How to Set the Title and Subtitle in Android ActionBar with Text Color
Setting Android ActionBar Subtitle and Color

Post a Comment

Powered by Blogger.