<?xml version="1.0" encoding="utf-8"?> <RelativeLayout android:layout_height="match_parent" android:layout_width="match_parent" android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android"> <WebView android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/wed_view"/> <LinearLayout android:layout_width="match_parent" android:layout_height="50dp" android:orientation="horizontal" android:layout_alignParentBottom="true" android:background="#ffffff"> <LinearLayout android:layout_width="0dp" android:layout_weight="1" android:orientation="vertical" android:layout_height="match_parent"> <ImageView android:layout_width="35dp" android:layout_height="35dp" android:src="@mipmap/a" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="供应商" /> </LinearLayout> <LinearLayout android:layout_width="0dp" android:layout_weight="1" android:orientation="vertical" android:layout_height="match_parent"> <ImageView android:layout_width="35dp" android:layout_height="35dp" android:src="@mipmap/b" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="店铺" /> </LinearLayout> <LinearLayout android:layout_width="0dp" android:layout_weight="1" android:orientation="vertical" android:layout_height="match_parent"> <ImageView android:layout_width="35dp" android:layout_height="35dp" android:src="@mipmap/c" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="爱好" /> </LinearLayout> <LinearLayout android:layout_width="0dp" android:layout_weight="1" android:orientation="vertical" android:gravity="center" android:layout_height="match_parent"> <ImageView android:layout_width="35dp" android:layout_height="35dp" android:src="@mipmap/c" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="购物车" /> </LinearLayout> <TextView android:layout_width="0dp" android:layout_weight="3" android:layout_height="match_parent" android:background="#f00" android:text="加入购物车" android:textSize="25sp" android:textColor="#fff" android:gravity="center" /> </LinearLayout> </RelativeLayout>
xml
最新推荐文章于 2023-06-11 22:50:59 发布