<?xml version="1.0" encoding="utf-8"?>
|
<androidx.core.widget.NestedScrollView
|
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"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content">
|
<TextView
|
android:id="@+id/txt_title"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="会员套餐"
|
android:layout_margin="@dimen/frame_margin_lr"
|
app:layout_constraintLeft_toLeftOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintBottom_toTopOf="@id/layout_month"/>
|
|
<LinearLayout
|
android:id="@+id/layout_month"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="@dimen/frame_margin_lr"
|
android:orientation="vertical"
|
android:background="@drawable/bg_border_red_corner"
|
android:padding="@dimen/frame_margin_lr"
|
android:layout_marginTop="10dp"
|
app:layout_constraintHorizontal_chainStyle="spread_inside"
|
app:layout_constraintLeft_toLeftOf="parent"
|
app:layout_constraintRight_toLeftOf="@+id/layout_quarter"
|
app:layout_constraintTop_toBottomOf="@id/txt_title">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="VIP初体验" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="月卡会员" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="¥40" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="开通立即生效" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:id="@+id/layout_quarter"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:background="@drawable/bg_border_red_corner"
|
android:padding="@dimen/frame_margin_lr"
|
app:layout_constraintTop_toTopOf="@id/layout_month"
|
app:layout_constraintLeft_toRightOf="@id/layout_month"
|
app:layout_constraintRight_toLeftOf="@id/layout_year">
|
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="VIP初体验" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="月卡会员" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="¥40" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="开通立即生效" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:id="@+id/layout_year"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:layout_marginRight="@dimen/frame_margin_lr"
|
android:background="@drawable/bg_border_red_corner"
|
android:padding="@dimen/frame_margin_lr"
|
app:layout_constraintTop_toTopOf="@id/layout_quarter"
|
app:layout_constraintLeft_toRightOf="@id/layout_quarter"
|
app:layout_constraintRight_toRightOf="parent">
|
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="VIP初体验" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="月卡会员" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="¥40" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="开通立即生效" />
|
</LinearLayout>
|
|
<TextView
|
android:id="@+id/txt_rights_title"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="会员专属权益"
|
android:layout_margin="@dimen/frame_margin_lr"
|
app:layout_constraintLeft_toLeftOf="parent"
|
app:layout_constraintTop_toBottomOf="@id/layout_month"/>
|
|
<include
|
layout="@layout/item_vip_right"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
app:layout_constraintTop_toBottomOf="@id/txt_rights_title"
|
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintLeft_toLeftOf="parent" />
|
|
<androidx.recyclerview.widget.RecyclerView
|
android:id="@+id/recycler_rights"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
tools:itemCount="8"
|
tools:listitem="@layout/item_vip_right"
|
app:layout_constraintTop_toBottomOf="@id/txt_rights_title"
|
app:layout_constraintLeft_toLeftOf="parent"
|
app:layout_constraintRight_toRightOf="parent"/>
|
|
<TextView
|
android:id="@+id/txt_desc"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:text="说明"
|
android:padding="@dimen/frame_margin_lr"
|
app:layout_constraintLeft_toLeftOf="parent"
|
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintTop_toBottomOf="@id/recycler_rights"/>
|
|
<LinearLayout
|
android:id="@+id/lin_btn"
|
android:layout_width="match_parent"
|
android:layout_height="40dp"
|
android:layout_margin="@dimen/frame_margin_lr"
|
android:orientation="horizontal"
|
android:background="@drawable/bg_sky_corner"
|
android:gravity="center"
|
app:layout_constraintLeft_toLeftOf="parent"
|
app:layout_constraintTop_toBottomOf="@id/txt_desc"
|
app:layout_constraintBottom_toBottomOf="parent">
|
|
<TextView
|
android:id="@+id/textView9"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:textColor="@color/white_2"
|
android:gravity="center"
|
android:textSize="16sp"
|
android:text="开通会员" />
|
|
<TextView
|
android:id="@+id/textView10"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginRight="20dp"
|
android:textColor="@color/red"
|
android:text="总价:¥40" />
|
</LinearLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.core.widget.NestedScrollView>
|