主要关注onCheckedChangeListener方法~
public class ConferenceActivity extends BaseActivity implements OnCheckedChangeListener{
}
xml文件
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:orientation="vertical" >
<include
android:id="@+id/title"
layout="@layout/title_layout" />
<RadioGroup
android:id="@+id/rg_function_moudle_1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="1dp"
android:background="@color/white"
android:orientation="horizontal"
android:>
<RadioButton
android:id="@+id/rb_open_hf"
style="@style/RadioButtonStyle"
android:drawableTop="@android:drawable/btn_radio"
android:text="@string/conf_open_hf" />
<RadioButton
android:id="@+id/rb_self_mute"
style="@style/RadioButtonStyle"
android:drawableTop="@android:drawable/btn_radio"
android:text="@string/conf_mute_self" />
<RadioButton
android:id="@+id/rb_mute_all"
style="@style/RadioButtonStyle"
android:drawableTop="@android:drawable/btn_radio"
android:text="@string/conf_mute_all" />
<RadioButton
android:id="@+id/rb_call_name"
style="@style/RadioButtonStyle"
android:drawableTop="@android:drawable/btn_radio"
android:text="@string/conf_call_name" />
<RadioButton
android:id="@+id/rb_record"
style="@style/RadioButtonStyle"
android:drawableTop="@android:drawable/btn_radio"
android:text="@string/conf_record" />
</RadioGroup>
<RadioGroup
android:id="@+id/rg_function_moudle_2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:layout_marginLeft="1dp"
android:layout_marginTop="15dp"
android:background="@color/white"
android:orientation="horizontal" >
<RadioButton
android:id="@+id/rb_add_participant"
style="@style/RadioButtonStyle"
android:drawableTop="@android:drawable/btn_radio"
android:text="@string/conf_add_participant" />
<RadioButton
android:id="@+id/rb_lock"
style="@style/RadioButtonStyle"
android:drawableTop="@android:drawable/btn_radio"
android:text="@string/conf_lock" />
<RadioButton
android:id="@+id/rb_other_function"
style="@style/RadioButtonStyle"
android:drawableTop="@android:drawable/btn_radio"
android:text="@string/conf_other_function" />
</RadioGroup>
<ListView
android:id="@+id/lv_participant"
style="@style/Normal_List"
android:layout_height="0dp"
android:layout_marginTop="10dp"
android:layout_weight="1"
android:background="@color/listview_bg_color"
android:footerDividersEnabled="false" >
</ListView>
</LinearLayout>