125 lines
4.8 KiB
XML
125 lines
4.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
|
|
|
|
tools:context=".MainTabActivity">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<FrameLayout
|
|
android:id="@+id/mycontent"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent" />
|
|
</LinearLayout>
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/rl_bottom"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:orientation="vertical"
|
|
android:visibility="visible">
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="10dip"
|
|
android:layout_alignTop="@+id/radioGroup"
|
|
android:background="@drawable/background_grey_line"
|
|
android:visibility="gone" />
|
|
|
|
<RadioGroup
|
|
android:id="@+id/radioGroup"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="50dip"
|
|
|
|
android:background="@color/white"
|
|
android:orientation="horizontal"
|
|
android:paddingTop="7dip">
|
|
|
|
<RadioButton
|
|
android:id="@+id/button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:button="@null"
|
|
android:checked="true"
|
|
android:drawableTop="@drawable/main_bottom_0"
|
|
android:gravity="center"
|
|
android:text="@string/news"
|
|
android:textColor="@color/radiobuttoncolor" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/button1"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:button="@null"
|
|
android:drawableTop="@drawable/main_bottom_1"
|
|
android:gravity="center"
|
|
android:text="发现"
|
|
android:textColor="@color/radiobuttoncolor" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/like"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:button="@null"
|
|
android:drawableTop="@drawable/main_bottom_like"
|
|
android:gravity="center"
|
|
android:text="点赞"
|
|
android:textColor="@color/radiobuttoncolor" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/button3"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:button="@null"
|
|
android:drawableTop="@drawable/main_bottom_2"
|
|
android:gravity="center"
|
|
android:text="购物车"
|
|
android:textColor="@color/radiobuttoncolor" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/button2"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:button="@null"
|
|
android:drawableTop="@drawable/main_bottom_3"
|
|
android:gravity="center"
|
|
android:text="@string/news3"
|
|
android:textColor="@color/radiobuttoncolor"
|
|
android:visibility="gone" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/button4"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:button="@null"
|
|
android:drawableTop="@drawable/main_bottom_4"
|
|
android:gravity="center"
|
|
android:text="@string/news4"
|
|
android:textColor="@color/radiobuttoncolor" />
|
|
</RadioGroup>
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout>
|
|
</layout> |