标签:
<?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:orientation="vertical" >
<FrameLayout
android:id="@+id/daohang"
android:layout_weight="1"
android:layout_width="match_parent"
android:layout_height="2dp"
></FrameLayout>
<RadioGroup
android:id="@+id/main_bottom_tabs"
android:layout_width="match_parent"
android:orientation="horizontal"
android:layout_height="wrap_content">
<RadioButton
android:id="@+id/home"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:button="@null"
android:gravity="center"
android:drawableTop="@drawable/main_home"
android:text="首页" />
<RadioButton
android:id="@+id/search"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:button="@null"
android:gravity="center"
android:drawableTop="@drawable/main_search"
android:layout_weight="1"
android:text="问题" />
<RadioButton
android:id="@+id/tuan"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_weight="1"
android:drawableTop="@drawable/main_tuan"
android:button="@null"
android:text="反馈"
/>
<RadioButton
android:id="@+id/my_nomal"
android:layout_width="wrap_content"
android:gravity="center"
android:layout_height="wrap_content"
android:layout_weight="1"
android:drawableTop="@drawable/my_admin"
android:button="@null"
android:text="联系我们"
/>
</RadioGroup>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_checked="true" android:drawable="@drawable/main_index_home_pressed"></item>
<item android:state_checked="false" android:drawable="@drawable/main_index_home_normal"></item>
</selector>
标签:
原文地址:http://www.cnblogs.com/llforeverlove/p/5452237.html