2016-10-10 12 views
1

설정 페이지는 RadioButton입니다. RadioButton은 화면의 전체 너비를 확장합니다. 그러나 그것을 클릭하면 매우 어색한 애니메이션을 보여줍니다. 여기Android RadioButton 선택 드로어 블

example

그리고 아래 내 xml입니다 :

<RadioGroup 
    android:id="@+id/xxx" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:orientation="vertical"> 

    <RadioButton 
     android:id="@+id/xxx" 
     style="@style/Settings_group.Item" 
     android:layout_marginRight="20dp" 
     android:button="@null" 
     android:drawableRight="?android:attr/listChoiceIndicatorSingle" 
     android:text="xxx" /> 

    <include 
     layout="@layout/layout_setting_item_divider" 
     android:layout_width="match_parent" 
     android:layout_height="0.5dp" /> 

    <RadioButton 
     android:id="@+id/xxx" 
     style="@style/Settings_group.Item" 
     android:layout_marginRight="20dp" 
     android:button="@null" 
     android:drawableRight="?android:attr/listChoiceIndicatorSingle" 
     android:text="xxx" /> 

</RadioGroup> 

EDIT-1 내가 파급 효과를 기대해야 RadioButton의 한 줄에 프로그램,하지만 화면의 중앙에. 그냥이

correct

+0

이 설명에 의해 더 구체적으로하시기 바랍니다 사용하지 않는 세트? –

+0

@AdarshGumashta Sry, 제 편집 -1 참조하시기 바랍니다. –

답변

1

처럼 android:background="?selectableItemBackground"에 라디오 버튼의 배경은 무엇을 달성하고자하는, android:background="?selectableItemBackgroundBorderless"

+0

@ L.Meng awesome – hakim