开发者

Multiple parents in Android styles xml

开发者 https://www.devze.com 2023-01-31 07:05 出处:网络
When using android styles, one can specify a parent style like: <style name=\"MyStyle\" parent=\"@style/ParentStyle\">开发者_如何转开发;</style>

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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消