Android : How to get ActionBar Title text color

on Saturday, August 2, 2014


I want to get ActionBar Title text style & color and set it for one TextView.


I did it by using the following:



<TextView
android:id="@+id/tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:singleLine="true"
style="@style/TextAppearance.AppCompat.Widget.ActionBar.Title.Inverse"
android:text="Title" />


Is there any better ways to get my current application theme's titleTextStyle ?


0 comments:

Post a Comment