我的应用程序中有一个主题,它定义了默认的textappearance和Button Style.
@style/TextAppearance.Medium
@style/TextAppearance.Large
@style/TextAppearance.Small
@style/TextAppearance.Medium
#000000
#000000
#000000
@style/Button
?android:attr/textColorPrimary
?android:attr/textColorHint
?android:attr/textColorPrimary
32dp
bold
?android:attr/textColorSecondary
22dp
?android:attr/textColorTertiary
18dp
?android:attr/textColorSecondary
?android:attr/textColorHint
normal
?android:attr/textAppearanceSmall
当我使用创建RadioButton时
RadioButton radioButton = new RadioButton(this,null,R.style.AppTheme);
创建RadioButton并正确设置样式,但选中的标记消失.为什么?
我在Buttongroup中有Radiobutton,我在那里动态添加按钮.当我通过布局添加按钮时,标记会正确显示.但动态添加按钮却没有.