Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android ShowcaseView Text Color

The default color for the subtext in the android showcaseview library found here is white. I would like to make the subtext black. I cannot find any documentation on how to change text color. There is a guide on XDA Developers which says how to change text color but it seems to be outdated. Anyone familiar with showcaseview?

Thank you.

like image 662
Shane Avatar asked Dec 12 '13 23:12

Shane


2 Answers

I had exactly the same problem and managed to change the text color by editing the color value the library itself from Eclipse. This assumes that you have imported the library in Eclipse and that it should be visible from the package explorer window.

Navigate to: [Library package] -> [res] -> [values] -> [styles.xml].

Now, change this:

  <style name="TextAppearance.ShowcaseView.Detail" parent="android:style/TextAppearance">
    <item name="android:textColor">#FFFFFF</item>
  </style>

Into this:

   <style name="TextAppearance.ShowcaseView.Detail" parent="android:style/TextAppearance">
            <item name="android:textColor">#000000</item>
   </style>
like image 138
Frank D. Avatar answered Nov 08 '22 15:11

Frank D.


I know this answer is rather late, but I was struggling with the same problem.

This link here (especially the section titled Theming) helped me customise the ShowcaseView effectively, rather than to modify the library itself.

Perhaps this answer will help someone else that stumbles upon this post in the future like I just did.

like image 38
dabarnard Avatar answered Nov 08 '22 16:11

dabarnard