When using android styles, one can specify a parent style like:
<style name="MyStyle" parent="@style/ParentStyle"></style>
Is is possible to specify multiple parents? If so, how?
Styles do not support multiple inheritance.
Parent attribute means that your current themes extends this Parent theme. It has all its attributes that you can override in your current style. It is a kind of inheritance for styles.
Styles and themes are declared in a style resource file in res/values/ , usually named styles. xml .
According to documentation, the syntax for parent
attribute value is @[package:]style/style_to_inherit
(where package:
is optional) so a reference to just a single style resource is allowed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With