【发布时间】:2017-02-05 23:44:44
【问题描述】:
我从 ToggleButton 扩展并想设置我的风格。当我在 style="@style/Button.Filter.Text" 这样的 xml 中设置样式时,一切正常
但是当我在自定义 ToggleButton 的构造函数中以编程方式设置样式时,例如 super(context, attrs, R.style.Button_Filter_Text); 我的按钮的样式与普通 TextView 一样(可能没有样式)
【问题讨论】:
标签: android android-custom-view android-styles