I am creating a library that requires the parent style to be passed to the library through a theme. For this, x is the style defined in the library. But he needs to expand something from the parent.
Is it possible to do below?
My library style: -
<style="x" parent="?customAttrReferingToSomeOtherStyle"></style>
Anyone using my library should do this: -
<item name="customAttrReferingToSomeOtherStyle">@style/ApprelatedStyle</item>
I am not interested in hard coding the parent style. I want it to be purely user-oriented based. Any form of hard-coding style will defeat the Separation of problems in the installation module.
android android-styles android-theme
gaara87
source share