Using custom attrs in styles.xml in android
问题 I made a custom attribute style as <?xml version="1.0" encoding="utf-8"?> <resources> <declare-styleable name="EffectsTextView"> <attr name="strokeWidth" format="float" /> <attr name="strokeMiter" format="float" /> <attr name="strokeColor" format="color" /> </declare-styleable> </resources> In Layout file, I could use this custom attribute assigning a namespace for this attribute: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:effects="http://schemas.android