305 lines
14 KiB
XML
305 lines
14 KiB
XML
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
|||
|
|
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:id="@+id/rootCoordinator"
|
|||
|
|
android:layout_width="match_parent"
|
|||
|
|
android:layout_height="match_parent"
|
|||
|
|
android:background="#F6F7FB"
|
|||
|
|
tools:context=".ui.home.HomeFragment">
|
|||
|
|
<!-- 内容 -->
|
|||
|
|
<androidx.core.widget.NestedScrollView
|
|||
|
|
android:layout_width="match_parent"
|
|||
|
|
android:layout_height="match_parent"
|
|||
|
|
android:fillViewport="true"
|
|||
|
|
android:overScrollMode="never">
|
|||
|
|
<LinearLayout
|
|||
|
|
android:layout_width="match_parent"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:orientation="vertical">
|
|||
|
|
<!-- recharge背景 -->
|
|||
|
|
<ImageView
|
|||
|
|
android:layout_width="match_parent"
|
|||
|
|
android:layout_height="224dp"
|
|||
|
|
android:src="@drawable/recharge_bg"
|
|||
|
|
android:scaleType="fitXY"
|
|||
|
|
android:adjustViewBounds="true" />
|
|||
|
|
<!-- 关闭按钮 -->
|
|||
|
|
<FrameLayout
|
|||
|
|
android:layout_width="46dp"
|
|||
|
|
android:layout_height="46dp"
|
|||
|
|
android:layout_marginTop="-198dp">
|
|||
|
|
<ImageView
|
|||
|
|
android:id="@+id/iv_close"
|
|||
|
|
android:layout_width="26dp"
|
|||
|
|
android:layout_height="26dp"
|
|||
|
|
android:layout_gravity="center"
|
|||
|
|
android:src="@drawable/recharge_close"
|
|||
|
|
android:rotation="180"
|
|||
|
|
android:scaleType="fitCenter" />
|
|||
|
|
</FrameLayout>
|
|||
|
|
<!-- vip -->
|
|||
|
|
<ImageView
|
|||
|
|
android:id="@+id/iv_close"
|
|||
|
|
android:layout_width="321dp"
|
|||
|
|
android:layout_height="269dp"
|
|||
|
|
android:layout_marginStart="24dp"
|
|||
|
|
android:elevation="1dp"
|
|||
|
|
android:src="@drawable/vip_two"/>
|
|||
|
|
<!-- 权益背景 -->
|
|||
|
|
<ImageView
|
|||
|
|
android:id="@+id/iv_close"
|
|||
|
|
android:layout_width="match_parent"
|
|||
|
|
android:layout_height="391dp"
|
|||
|
|
android:elevation="2dp"
|
|||
|
|
android:layout_marginTop="-198dp"
|
|||
|
|
android:src="@drawable/recharge_equity_bg"/>
|
|||
|
|
|
|||
|
|
<LinearLayout
|
|||
|
|
android:layout_width="match_parent"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:layout_marginTop="-380dp"
|
|||
|
|
android:elevation="3dp"
|
|||
|
|
android:padding="16dp"
|
|||
|
|
android:orientation="vertical">
|
|||
|
|
<TextView
|
|||
|
|
android:id="@+id/member"
|
|||
|
|
android:layout_marginTop="28dp"
|
|||
|
|
android:layout_width="290dp"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:textSize="18sp"
|
|||
|
|
android:textStyle="bold"
|
|||
|
|
android:textColor="#1B1F1A"
|
|||
|
|
android:layout_gravity="center_horizontal"
|
|||
|
|
android:text="Become A Member Of LOVE KEY" />
|
|||
|
|
|
|||
|
|
<TextView
|
|||
|
|
android:id="@+id/Unlock"
|
|||
|
|
android:layout_marginTop="3dp"
|
|||
|
|
android:layout_width="wrap_content"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:textSize="14sp"
|
|||
|
|
android:textColor="#1B1F1A"
|
|||
|
|
android:layout_gravity="center_horizontal"
|
|||
|
|
android:text="Unlock all functions" />
|
|||
|
|
|
|||
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|||
|
|
android:layout_width="match_parent"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:layout_marginTop="16dp">
|
|||
|
|
<ImageView
|
|||
|
|
android:id="@+id/imgLeft"
|
|||
|
|
android:layout_width="150dp"
|
|||
|
|
android:layout_height="113dp"
|
|||
|
|
android:scaleType="fitXY"
|
|||
|
|
android:src="@drawable/recharge_wireless_sub_ai_dialogue"
|
|||
|
|
app:layout_constraintStart_toStartOf="parent"
|
|||
|
|
app:layout_constraintBottom_toBottomOf="parent"/>
|
|||
|
|
|
|||
|
|
<ImageView
|
|||
|
|
android:id="@+id/imgRight"
|
|||
|
|
android:layout_width="150dp"
|
|||
|
|
android:layout_height="109dp"
|
|||
|
|
android:scaleType="fitXY"
|
|||
|
|
android:src="@drawable/recharge_personalized_keyboard"
|
|||
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|||
|
|
app:layout_constraintBottom_toBottomOf="parent"/>
|
|||
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|||
|
|
|
|||
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|||
|
|
android:layout_width="match_parent"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:layout_marginTop="10dp">
|
|||
|
|
<ImageView
|
|||
|
|
android:id="@+id/imgLeft"
|
|||
|
|
android:layout_width="150dp"
|
|||
|
|
android:layout_height="122dp"
|
|||
|
|
android:scaleType="fitXY"
|
|||
|
|
android:src="@drawable/recharge_chat_persona"
|
|||
|
|
app:layout_constraintStart_toStartOf="parent"
|
|||
|
|
app:layout_constraintBottom_toBottomOf="parent"/>
|
|||
|
|
|
|||
|
|
<ImageView
|
|||
|
|
android:id="@+id/imgRight"
|
|||
|
|
android:layout_width="150dp"
|
|||
|
|
android:layout_height="115dp"
|
|||
|
|
android:scaleType="fitXY"
|
|||
|
|
android:src="@drawable/recharge_emotional_counseling"
|
|||
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|||
|
|
app:layout_constraintBottom_toBottomOf="parent"/>
|
|||
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|||
|
|
</LinearLayout>
|
|||
|
|
|
|||
|
|
<LinearLayout
|
|||
|
|
android:layout_width="match_parent"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:orientation="vertical"
|
|||
|
|
android:padding="16dp"
|
|||
|
|
android:gravity="center_horizontal">
|
|||
|
|
<!-- 卡片 -->
|
|||
|
|
<LinearLayout
|
|||
|
|
android:layout_width="match_parent"
|
|||
|
|
android:layout_height="75dp"
|
|||
|
|
android:orientation="horizontal"
|
|||
|
|
android:background="@drawable/recharge_card_bg"
|
|||
|
|
android:gravity="center_vertical">
|
|||
|
|
<!-- 左侧文字区域 -->
|
|||
|
|
<LinearLayout
|
|||
|
|
android:layout_width="0dp"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:layout_weight="1"
|
|||
|
|
android:layout_marginStart="16dp"
|
|||
|
|
android:orientation="vertical">
|
|||
|
|
<!-- 标题:Monthly Subscription -->
|
|||
|
|
<TextView
|
|||
|
|
android:id="@+id/tvTitle"
|
|||
|
|
android:layout_width="wrap_content"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:text="Monthly Subscription"
|
|||
|
|
android:textSize="14sp"
|
|||
|
|
android:textColor="#1B1F1A" />
|
|||
|
|
|
|||
|
|
<!-- 价格区域:新价格 + 划线旧价格 -->
|
|||
|
|
<LinearLayout
|
|||
|
|
android:layout_width="wrap_content"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:orientation="horizontal"
|
|||
|
|
android:layout_marginTop="4dp">
|
|||
|
|
<!-- 当前价格 -->
|
|||
|
|
<TextView
|
|||
|
|
android:id="@+id/tvPrice"
|
|||
|
|
android:layout_width="wrap_content"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:text="$4.49"
|
|||
|
|
android:textSize="20sp"
|
|||
|
|
android:textStyle="bold"
|
|||
|
|
android:textColor="#000000" />
|
|||
|
|
|
|||
|
|
<!-- 旧价格(划线) -->
|
|||
|
|
<TextView
|
|||
|
|
android:id="@+id/tvOldPrice"
|
|||
|
|
android:layout_width="wrap_content"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:layout_marginStart="8dp"
|
|||
|
|
android:text="$4.49"
|
|||
|
|
android:textSize="20sp"
|
|||
|
|
android:textColor="#b3b3b3" />
|
|||
|
|
</LinearLayout>
|
|||
|
|
</LinearLayout>
|
|||
|
|
|
|||
|
|
<!-- 右侧选中 -->
|
|||
|
|
<ImageView
|
|||
|
|
android:id="@+id/ivCheck"
|
|||
|
|
android:layout_width="24dp"
|
|||
|
|
android:layout_height="24dp"
|
|||
|
|
android:layout_marginEnd="16dp"
|
|||
|
|
android:src="@drawable/unchecked"
|
|||
|
|
android:scaleType="centerInside" />
|
|||
|
|
</LinearLayout>
|
|||
|
|
<!-- ··························· -->
|
|||
|
|
</LinearLayout>
|
|||
|
|
|
|||
|
|
<!-- 评论 -->
|
|||
|
|
<LinearLayout
|
|||
|
|
android:layout_width="match_parent"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:orientation="horizontal"
|
|||
|
|
android:padding="16dp"
|
|||
|
|
android:gravity="center_vertical">
|
|||
|
|
<!-- 卡片 -->
|
|||
|
|
<LinearLayout
|
|||
|
|
android:layout_width="204dp"
|
|||
|
|
android:layout_height="115dp"
|
|||
|
|
android:background="@drawable/settings"
|
|||
|
|
android:orientation="vertical"
|
|||
|
|
android:padding="10dp">
|
|||
|
|
<!-- 头像昵称 -->
|
|||
|
|
<LinearLayout
|
|||
|
|
android:layout_width="wrap_content"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:orientation="horizontal">
|
|||
|
|
<de.hdodenhof.circleimageview.CircleImageView
|
|||
|
|
android:layout_width="24dp"
|
|||
|
|
android:layout_height="24dp"
|
|||
|
|
android:src="@drawable/bg" />
|
|||
|
|
|
|||
|
|
<TextView
|
|||
|
|
android:id="@+id/tvNickname"
|
|||
|
|
android:layout_width="wrap_content"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:layout_marginStart="6dp"
|
|||
|
|
android:text="Nickname"
|
|||
|
|
android:singleLine="true"
|
|||
|
|
android:ellipsize="end"
|
|||
|
|
android:maxLines="1"
|
|||
|
|
android:textSize="14sp"
|
|||
|
|
android:textColor="#1B1F1A" />
|
|||
|
|
</LinearLayout>
|
|||
|
|
|
|||
|
|
<!-- 五星好评 -->
|
|||
|
|
<ImageView
|
|||
|
|
android:id="@+id/ivStar"
|
|||
|
|
android:layout_width="77dp"
|
|||
|
|
android:layout_height="10dp"
|
|||
|
|
android:layout_marginTop="8dp"
|
|||
|
|
android:src="@drawable/five_star_review"
|
|||
|
|
android:scaleType="fitXY" />
|
|||
|
|
|
|||
|
|
<!-- 评论内容 -->
|
|||
|
|
<TextView
|
|||
|
|
android:id="@+id/tvComment"
|
|||
|
|
android:layout_width="wrap_content"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:layout_marginTop="6dp"
|
|||
|
|
android:text="I highly recommend this APP. It taught me how to chat"
|
|||
|
|
android:ellipsize="end"
|
|||
|
|
android:maxLines="2"
|
|||
|
|
android:textSize="10sp"
|
|||
|
|
android:textColor="#1B1F1A" />
|
|||
|
|
</LinearLayout>
|
|||
|
|
</LinearLayout>
|
|||
|
|
|
|||
|
|
<!-- 按钮 -->
|
|||
|
|
<LinearLayout
|
|||
|
|
android:id="@+id/rechargeButton"
|
|||
|
|
android:layout_marginTop="24dp"
|
|||
|
|
android:layout_width="343dp"
|
|||
|
|
android:layout_height="51dp"
|
|||
|
|
android:layout_gravity="center_horizontal"
|
|||
|
|
android:gravity="center"
|
|||
|
|
android:background="@drawable/button_bg"
|
|||
|
|
android:elevation="4dp"
|
|||
|
|
android:orientation="horizontal">
|
|||
|
|
|
|||
|
|
<TextView
|
|||
|
|
android:layout_width="wrap_content"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:textSize="15sp"
|
|||
|
|
android:textStyle="bold"
|
|||
|
|
android:gravity="center"
|
|||
|
|
android:textColor="#1B1F1A"
|
|||
|
|
android:text="Recharge now" />
|
|||
|
|
</LinearLayout>
|
|||
|
|
|
|||
|
|
<!-- 协议 -->
|
|||
|
|
<TextView
|
|||
|
|
android:layout_width="match_parent"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:layout_marginTop="17dp"
|
|||
|
|
android:textSize="10sp"
|
|||
|
|
android:text="By clicking "pay", you indicate your agreement to the"
|
|||
|
|
android:textColor="#1B1F1A"
|
|||
|
|
android:gravity="center_horizontal"/>
|
|||
|
|
|
|||
|
|
<TextView
|
|||
|
|
android:layout_width="match_parent"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:layout_marginTop="4dp"
|
|||
|
|
android:textSize="10sp"
|
|||
|
|
android:text="《Embership Agreement》"
|
|||
|
|
android:textColor="#02BEAC"
|
|||
|
|
android:gravity="center_horizontal" />
|
|||
|
|
|
|||
|
|
</LinearLayout>
|
|||
|
|
</androidx.core.widget.NestedScrollView>
|
|||
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|