| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" |
| | | <FrameLayout |
| | | xmlns:android="http://schemas.android.com/apk/res/android" |
| | | xmlns:app="http://schemas.android.com/apk/res-auto" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="match_parent"> |
| | | |
| | | <ScrollView |
| | | android:layout_width="match_parent" |
| | | android:layout_height="match_parent" |
| | | android:layout_marginTop="80dp"> <!-- 留出顶部广告位的高度 --> |
| | | > |
| | | |
| | | <!-- LinearLayout的作用是按照垂直或者水平方向排列其子视图--> |
| | | <!-- CardView组件是用于实现卡片式布局--> |
| | |
| | | android:layout_height="wrap_content" |
| | | android:orientation="vertical"> |
| | | |
| | | <!-- 顶部广告位 --> |
| | | <androidx.cardview.widget.CardView |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | app:cardCornerRadius="8dp" |
| | | app:cardElevation="2dp"> |
| | | |
| | | <ImageView |
| | | android:id="@+id/adBanner" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="80dp" |
| | | android:scaleType="centerCrop"/> |
| | | </androidx.cardview.widget.CardView> |
| | | |
| | | |
| | | <!-- 快递/财务切换区域 --> |
| | | <LinearLayout |
| | |
| | | </androidx.cardview.widget.CardView> |
| | | |
| | | </LinearLayout> |
| | | </ScrollView> |
| | | </ScrollView> |
| | | |
| | | <!-- 顶部广告位 --> |
| | | <androidx.cardview.widget.CardView |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | > |
| | | |
| | | <ImageView |
| | | android:id="@+id/adBanner" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="80dp" |
| | | android:scaleType="centerCrop" |
| | | android:src="@drawable/up"/> |
| | | </androidx.cardview.widget.CardView> |
| | | |
| | | </FrameLayout> |