How do I edit the styles.xml of a dependency in Android Studio?

847 views Asked by At

How do I edit the styles.xml of a dependency in Android Studio?

Im currently using ShowcaseView 5.0 , but i want to theme the styles xml to what my ui colors look like. but i dont see any styles.xml associated from maven dependency.

Default theme i think enter image description here

Any kind of technique is greatly appreciated,

Thanks David

2

There are 2 answers

1
Alex Curran On BEST ANSWER

You don't need to edit the styles.xml, just provide your own. Take a look at the sample app, which has its own ShowcaseView styles:

https://github.com/amlcurran/ShowcaseView/blob/master/sample/src/main/res/values/styles.xml

1
VernonG On

I can't comment because I don't have >50 reputation.

You can change your parent class in your style in which to inherit from. If you switch in between ShowcaseView.Light and ShowcaseView the detail text should alternate between white/black.

OR you might be able to use this in your style:

<item name="sv_detailTextAppearance">@style/CustomDetailText</item>