底部導航欄懸浮效果
阿新 • • 發佈:2019-01-24
<?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <ScrollView android:layout_width="match_parent" android:layout_height="wrap_content"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <TextView android:layout_width="match_parent" android:layout_height="60dp" android:background="#cecbcb" android:gravity="center" android:text="商品詳情" android:textSize="18sp" /> <android.support.v4.view.ViewPager android:id="@+id/show_view" android:layout_width="match_parent" android:layout_height="360dp" /> <TextView android:id="@+id/show_title" android:layout_width="match_parent" android:layout_height="60dp" /> <TextView android:id="@+id/show_price" android:layout_width="match_parent" android:layout_height="60dp" android:textColor="#ffff00" /> <TextView android:layout_width="match_parent" android:layout_height="60dp" android:text="@string/gwc" android:textColor="#f00" /> <TextView android:layout_width="match_parent" android:layout_height="60dp" android:text="@string/gwc" android:textColor="#ffff00" /> <TextView android:layout_width="match_parent" android:layout_height="60dp" android:text="@string/gwc" android:textColor="#ffff00" /> <TextView android:layout_width="match_parent" android:layout_height="60dp" android:text="@string/gwc" android:textColor="#ffff00" /> <TextView android:layout_width="match_parent" android:layout_height="60dp" android:text="@string/gwc" android:textColor="#ffff00" /> <TextView android:layout_width="match_parent" android:layout_height="60dp" android:text="@string/gwc" android:textColor="#f00" /> <TextView android:layout_width="match_parent" android:layout_height="60dp" android:text="@string/gwc" android:textColor="#f00" /> </LinearLayout> </ScrollView> <LinearLayout android:layout_width="match_parent" android:layout_height="100dp" android:layout_gravity="bottom" android:orientation="horizontal"> <RadioGroup android:layout_width="0dp" android:layout_weight="9" android:layout_height="match_parent" android:orientation="horizontal" android:gravity="center"> <RadioButton android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:button="@null" android:gravity="center" android:drawableTop="@drawable/qie" android:text="@string/gys" /> <RadioButton android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:gravity="center" android:button="@null" android:drawableTop="@drawable/qie" android:text="@string/dp" /> <RadioButton android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:gravity="center" android:button="@null" android:drawableTop="@drawable/qie" android:text="@string/gz" /> <RadioButton android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:button="@null" android:gravity="center" android:drawableTop="@drawable/qie" android:text="@string/gwc" /> </RadioGroup> <Button android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="3" android:text="@string/jiaru" android:background="#f00" /> </LinearLayout> </FrameLayout>