안드로이드의 일반 버튼에 라디오 버튼 효과를 얻으려고합니다.
아래에 간단한 안드로이드 라디오 버튼이 있습니다.

이 코드는 ::
activity_main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity" >
<RadioGroup
android:id="@+id/radioGroup1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true" >
<RadioButton
android:id="@+id/radio0"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="true"
android:text="RadioButton1" />
<RadioButton
android:id="@+id/radio1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="RadioButton2" />
<RadioButton
android:id="@+id/radio2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="RadioButton3" />
</RadioGroup>
</RelativeLayout>
아래와 같이 사용자 정의하는 방법 ::

감사합니다 !
[편집] 답변 중 하나의 코드를 사용하여

그러나 버튼 이름은 선택 옵션으로 인해 그림자가 제거됩니다.
더 많은 변경 사항 {EDIT} 개
마지막 변경 사항은 적어도 세 개의 라디오 버튼 중 어떤 버튼을 선택했는지 알아야합니다 .... 아래와 같이 얻을 수 있습니까?



