我有以下伪布局:
<RelativeLayout>
<ACustomView />
<AnotherCustomView />
</RelativeLayout>
我TextView
在两个自定义视图中都有 s(从 XML 膨胀)。如何TextView
在第一个自定义视图中为每个设置样式属性(例如 textColor)?例如,我希望TextView
在第一个自定义视图中的每个都是红色的。
我有以下伪布局:
<RelativeLayout>
<ACustomView />
<AnotherCustomView />
</RelativeLayout>
我TextView
在两个自定义视图中都有 s(从 XML 膨胀)。如何TextView
在第一个自定义视图中为每个设置样式属性(例如 textColor)?例如,我希望TextView
在第一个自定义视图中的每个都是红色的。