1
This commit is contained in:
@@ -1,101 +1,115 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
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_marginBottom="50dip"
|
||||
android:layout_height="match_parent">
|
||||
<FrameLayout
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
|
||||
android:id="@+id/mycontent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
android:layout_height="match_parent"/>
|
||||
</LinearLayout>
|
||||
<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:layout_width="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_height="wrap_content">
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_alignTop="@+id/radioGroup"
|
||||
android:visibility="gone"
|
||||
android:background="@drawable/background_grey_line"
|
||||
android:layout_height="10dip"/>
|
||||
<RadioGroup
|
||||
android:layout_width="match_parent"
|
||||
android:paddingTop="7dip"
|
||||
android:id="@+id/radioGroup"
|
||||
|
||||
android:background="@color/white"
|
||||
android:orientation="horizontal"
|
||||
android:layout_height="50dip">
|
||||
<RadioButton
|
||||
<LinearLayout
|
||||
android:id="@+id/rl_bottom"
|
||||
android:visibility="visible"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:orientation="vertical">
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:checked="true"
|
||||
android:button="@null"
|
||||
android:drawableTop="@drawable/main_bottom_0"
|
||||
android:id="@+id/button"
|
||||
android:textColor="@color/radiobuttoncolor"
|
||||
android:text="@string/news"
|
||||
android:layout_height="match_parent"/>
|
||||
<RadioButton
|
||||
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_weight="1"
|
||||
android:gravity="center"
|
||||
android:drawableTop="@drawable/main_bottom_1"
|
||||
android:button="@null"
|
||||
android:id="@+id/button1"
|
||||
android:textColor="@color/radiobuttoncolor"
|
||||
android:text="发现"
|
||||
android:layout_height="match_parent"/>
|
||||
<RadioButton
|
||||
android:layout_width="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:button="@null"
|
||||
android:gravity="center"
|
||||
android:drawableTop="@drawable/main_bottom_2"
|
||||
android:id="@+id/button3"
|
||||
android:text="购物车"
|
||||
android:textColor="@color/radiobuttoncolor"
|
||||
android:layout_height="match_parent"/>
|
||||
<RadioButton
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:button="@null"
|
||||
android:gravity="center"
|
||||
android:drawableTop="@drawable/main_bottom_3"
|
||||
android:id="@+id/button2"
|
||||
android:textColor="@color/radiobuttoncolor"
|
||||
android:text="@string/news3"
|
||||
android:layout_height="match_parent"/>
|
||||
<RadioButton
|
||||
android:layout_width="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/news4"
|
||||
android:drawableTop="@drawable/main_bottom_4"
|
||||
android:button="@null"
|
||||
android:id="@+id/button4"
|
||||
android:textColor="@color/radiobuttoncolor"
|
||||
android:gravity="center"
|
||||
android:layout_height="match_parent"/>
|
||||
</RadioGroup>
|
||||
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/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>
|
||||
Reference in New Issue
Block a user