一个视图中的多个样式值多个、视图、样式

由网友(陪你到老)分享简介:我里面styles.xml定义2的样式。我想将它应用到一个TextView。如何实现使用样式=@style /I have 2 styles defined inside styles.xml. I want to apply it to a textview. How to implement that using...

我里面styles.xml定义2的样式。我想将它应用到一个TextView。如何实现使用样式=@style /

I have 2 styles defined inside styles.xml. I want to apply it to a textview. How to implement that using style = "@style/"

推荐答案

您不能。你将不得不创建一个融合了两种风格的样式。 (或者只创建一个风格,从你的风格之一继承,并添加第二个样式的额外数据)。

You can't. You will have to create a style which combines the two styles. (Or create just one style that inherits from one of your styles, and add the extra data of the second style).

阅读全文

相关推荐

最新文章