Is it possible to inherit or extend a style from a custom attribute

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.

+8
android android-styles android-theme
source share

No one has answered this question yet.

See related questions:

337
Cannot find Theme.AppCompat.Light for new Android ActionBar support
nine
Overriding style reference attributes
4
Why can't I reference the original Android theme attribute from colors.xml?
3
Theme style for custom view
one
Android Change the Style of the TextView Programmatically When Styles are Customized and Controlled by Theme
one
Can I apply a set of styles to everything in a ViewGroup?
one
setting custom style attribute for navigation tabs ActionBarSherlock violates default theme
0
Default Value for Custom Style Attribute
0
Override custom-style Android background for one theme but not
0
Is there a way to globally install android: theme for a certain type of presentation?

All Articles