Skip to content Skip to sidebar Skip to footer

Styling A View With A Custom Style Reference

I'm trying to style a RelativeLayout with a custom attribute appNS:style1='@style/RelativeLayout2' The value of this attribute is read during construction with the static method

Solution 1:

None of the styling in @style/RelativeLayout2 takes effect

Please refer to my answer defStyleRes has no effect in custom View (RelativeLayout).

You could try using style="@style/RelativeLayout2", it works fine on my side.

Post a Comment for "Styling A View With A Custom Style Reference"