Custom XML attributes without custom View in Fragment
问题 I'm trying to add custom XML attributes in existing View Adding them to a custom View is not a big deal but I don't know how to access those attributes in a "basic" View (e.g. TextView, LinearLayout, ImageView ...) And this is more difficult when there are Fragment and / or Library project involved So far here is my code Customs attributes definitions and XML (attrs.xml and the layout): <?xml version="1.0" encoding="utf-8"?> <resources> <declare-styleable name="StarWars"> <attr name="jedi"