2016-01-11 34 views
0

我最近从Eclipse迁移到Android Studio。Android RadioButton圆形按钮不会出现在API 20和更低版本中

我的RadioGroupRadioButtons在我的应用程序,正在我的设备(API 19)没有问题的工作。看起来,如果API高于21,它们就会出现。

升级到Android Studio后,虽然我已经选中了其中一​​个,但没有出现按钮圆圈。

此外,我试图改变颜色,它仍然没有出现。

此外,使用ButtonTint尝试,但不可用,直到API 21

感谢。

<RadioGroup 
android:id="@+id/menuGroup"  
     android:layout_centerHorizontal="true" 
android:layout_height="wrap_content" 
android:layout_width="wrap_content" 
android:orientation="horizontal" 

    > 

<RadioButton 
     android:id="@+id/radioAny" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:text="Any" 
     android:checked="true" 
     android:textColor="#ffffff" 
     android:layout_marginRight="10dp" /> 
+0

你能请张贴一些代码 –

+0

什么代码完全xml文件? – Pacemaker

+0

布局现在只是看你做了什么 –

回答

0

尝试更改单选按钮的样式。

转到该按钮被宣布再从设计部分选择单选按钮,并改变它的风格@android:style/Widget.Holo.CompoundButton.RadioButton

希望工程