简体   繁体   中英

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

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 在此处输入图片说明

Any kind of technique is greatly appreciated,

Thanks David

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

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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM