Files
Android-key-of-love/app/src/main/res/layout/activity_recharge.xml
pengxiaolong d10524c597 手机适配
2026-02-10 18:26:31 +08:00

305 lines
14 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<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="@dimen/sw_224dp"
android:src="@drawable/recharge_bg"
android:scaleType="fitXY"
android:adjustViewBounds="true" />
<!-- 关闭按钮 -->
<FrameLayout
android:layout_width="@dimen/sw_46dp"
android:layout_height="@dimen/sw_46dp"
android:layout_marginTop="@dimen/_sw_198dp">
<ImageView
android:id="@+id/iv_close"
android:layout_width="@dimen/sw_26dp"
android:layout_height="@dimen/sw_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="@dimen/sw_321dp"
android:layout_height="@dimen/sw_269dp"
android:layout_marginStart="@dimen/sw_24dp"
android:elevation="@dimen/sw_1dp"
android:src="@drawable/vip_two"/>
<!-- 权益背景 -->
<ImageView
android:id="@+id/iv_close"
android:layout_width="match_parent"
android:layout_height="@dimen/sw_391dp"
android:elevation="@dimen/sw_2dp"
android:layout_marginTop="@dimen/_sw_198dp"
android:src="@drawable/recharge_equity_bg"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/_sw_380dp"
android:elevation="@dimen/sw_3dp"
android:padding="@dimen/sw_16dp"
android:orientation="vertical">
<TextView
android:id="@+id/member"
android:layout_marginTop="@dimen/sw_28dp"
android:layout_width="@dimen/sw_290dp"
android:layout_height="wrap_content"
android:textSize="@dimen/sw_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="@dimen/sw_3dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/sw_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="@dimen/sw_16dp">
<ImageView
android:id="@+id/imgLeft"
android:layout_width="@dimen/sw_150dp"
android:layout_height="@dimen/sw_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="@dimen/sw_150dp"
android:layout_height="@dimen/sw_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="@dimen/sw_10dp">
<ImageView
android:id="@+id/imgLeft"
android:layout_width="@dimen/sw_150dp"
android:layout_height="@dimen/sw_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="@dimen/sw_150dp"
android:layout_height="@dimen/sw_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="@dimen/sw_16dp"
android:gravity="center_horizontal">
<!-- 卡片 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/sw_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="@dimen/sw_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="@dimen/sw_14sp"
android:textColor="#1B1F1A" />
<!-- 价格区域:新价格 + 划线旧价格 -->
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginTop="@dimen/sw_4dp">
<!-- 当前价格 -->
<TextView
android:id="@+id/tvPrice"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="$4.49"
android:textSize="@dimen/sw_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="@dimen/sw_8dp"
android:text="$4.49"
android:textSize="@dimen/sw_20sp"
android:textColor="#b3b3b3" />
</LinearLayout>
</LinearLayout>
<!-- 右侧选中 -->
<ImageView
android:id="@+id/ivCheck"
android:layout_width="@dimen/sw_24dp"
android:layout_height="@dimen/sw_24dp"
android:layout_marginEnd="@dimen/sw_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="@dimen/sw_16dp"
android:gravity="center_vertical">
<!-- 卡片 -->
<LinearLayout
android:layout_width="@dimen/sw_204dp"
android:layout_height="@dimen/sw_115dp"
android:background="@drawable/settings"
android:orientation="vertical"
android:padding="@dimen/sw_10dp">
<!-- 头像昵称 -->
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<de.hdodenhof.circleimageview.CircleImageView
android:layout_width="@dimen/sw_24dp"
android:layout_height="@dimen/sw_24dp"
android:src="@drawable/default_avatar" />
<TextView
android:id="@+id/tvNickname"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/sw_6dp"
android:text="Nickname"
android:singleLine="true"
android:ellipsize="end"
android:maxLines="1"
android:textSize="@dimen/sw_14sp"
android:textColor="#1B1F1A" />
</LinearLayout>
<!-- 五星好评 -->
<ImageView
android:id="@+id/ivStar"
android:layout_width="@dimen/sw_77dp"
android:layout_height="@dimen/sw_10dp"
android:layout_marginTop="@dimen/sw_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="@dimen/sw_6dp"
android:text="I highly recommend this APP. It taught me how to chat"
android:ellipsize="end"
android:maxLines="2"
android:textSize="@dimen/sw_10sp"
android:textColor="#1B1F1A" />
</LinearLayout>
</LinearLayout>
<!-- 按钮 -->
<LinearLayout
android:id="@+id/rechargeButton"
android:layout_marginTop="@dimen/sw_24dp"
android:layout_width="@dimen/sw_343dp"
android:layout_height="@dimen/sw_51dp"
android:layout_gravity="center_horizontal"
android:gravity="center"
android:background="@drawable/button_bg"
android:elevation="@dimen/sw_4dp"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/sw_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="@dimen/sw_17dp"
android:textSize="@dimen/sw_10sp"
android:text="By clicking &quot;pay&quot;, 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="@dimen/sw_4dp"
android:textSize="@dimen/sw_10sp"
android:text="《Embership Agreement》"
android:textColor="#02BEAC"
android:gravity="center_horizontal" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</androidx.coordinatorlayout.widget.CoordinatorLayout>