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