手机适配
This commit is contained in:
@@ -28,16 +28,16 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:padding="16dp"
|
||||
android:padding="@dimen/sw_16dp"
|
||||
android:gravity="center_vertical">
|
||||
<!-- 返回按钮 -->
|
||||
<FrameLayout
|
||||
android:id="@+id/iv_close"
|
||||
android:layout_width="46dp"
|
||||
android:layout_height="46dp">
|
||||
android:layout_width="@dimen/sw_46dp"
|
||||
android:layout_height="@dimen/sw_46dp">
|
||||
<ImageView
|
||||
android:layout_width="13dp"
|
||||
android:layout_height="13dp"
|
||||
android:layout_width="@dimen/sw_13dp"
|
||||
android:layout_height="@dimen/sw_13dp"
|
||||
android:layout_gravity="center"
|
||||
android:src="@drawable/more_icons"
|
||||
android:rotation="180"
|
||||
@@ -48,26 +48,26 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginEnd="49dp"
|
||||
android:layout_marginEnd="@dimen/sw_49dp"
|
||||
android:gravity="center"
|
||||
android:textStyle="bold"
|
||||
android:text="Points recharge"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="16sp" />
|
||||
android:textSize="@dimen/sw_16sp" />
|
||||
</LinearLayout>
|
||||
<!-- 现有金币 -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:elevation="2dp"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:elevation="@dimen/sw_2dp"
|
||||
android:paddingStart="@dimen/sw_16dp"
|
||||
android:paddingEnd="@dimen/sw_16dp"
|
||||
android:orientation="horizontal">
|
||||
<!-- 金币 -->
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_marginTop="@dimen/sw_20dp"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
@@ -75,21 +75,21 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="My points"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="14sp"/>
|
||||
android:textSize="@dimen/sw_14sp"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="4230"
|
||||
android:textColor="#02BEAC"
|
||||
android:textSize="30sp" />
|
||||
android:textSize="@dimen/sw_30sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 金币图标 -->
|
||||
<ImageView
|
||||
android:layout_width="131dp"
|
||||
android:layout_height="144dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:layout_width="@dimen/sw_131dp"
|
||||
android:layout_height="@dimen/sw_144dp"
|
||||
android:layout_marginEnd="@dimen/sw_10dp"
|
||||
android:src="@drawable/points_gold_coins"
|
||||
android:scaleType="fitXY"/>
|
||||
</LinearLayout>
|
||||
@@ -98,8 +98,8 @@
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="16dp"
|
||||
android:layout_marginTop="-40dp"
|
||||
android:padding="@dimen/sw_16dp"
|
||||
android:layout_marginTop="@dimen/_sw_40dp"
|
||||
android:background="@drawable/gold_coin_recharge_bt_bg"
|
||||
android:orientation="vertical">
|
||||
<!-- 标题 -->
|
||||
@@ -109,30 +109,30 @@
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center_vertical">
|
||||
<ImageView
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_width="@dimen/sw_24dp"
|
||||
android:layout_height="@dimen/sw_24dp"
|
||||
android:src="@drawable/gold_coin"
|
||||
android:scaleType="fitXY"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginStart="@dimen/sw_8dp"
|
||||
android:text="Recharge now"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="14sp" />
|
||||
android:textSize="@dimen/sw_14sp" />
|
||||
</LinearLayout>
|
||||
<!-- 套餐选择 -->
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_marginTop="@dimen/sw_20dp"
|
||||
android:orientation="vertical">
|
||||
<!-- 套餐 -->
|
||||
<LinearLayout
|
||||
android:layout_width="108dp"
|
||||
android:layout_height="116dp"
|
||||
android:layout_width="@dimen/sw_108dp"
|
||||
android:layout_height="@dimen/sw_116dp"
|
||||
android:background="@drawable/gold_coin_recharge_package_bg"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
@@ -143,27 +143,27 @@
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal">
|
||||
<ImageView
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_width="@dimen/sw_24dp"
|
||||
android:layout_height="@dimen/sw_24dp"
|
||||
android:src="@drawable/gold_coin"
|
||||
android:scaleType="fitXY"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginStart="@dimen/sw_4dp"
|
||||
android:text="690"
|
||||
android:textColor="#02BEAC"
|
||||
android:textSize="20sp" />
|
||||
android:textSize="@dimen/sw_20sp" />
|
||||
</LinearLayout>
|
||||
<!-- 花费金额 -->
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginTop="@dimen/sw_10dp"
|
||||
android:gravity="center"
|
||||
android:text="$6.90"
|
||||
android:textSize="18sp"
|
||||
android:textSize="@dimen/sw_18sp"
|
||||
android:textColor="#797979" />
|
||||
</LinearLayout>
|
||||
<!-- ````````````````````````````` -->
|
||||
@@ -180,20 +180,20 @@
|
||||
<!-- 充值按钮 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/rechargeButton"
|
||||
android:layout_marginTop="126dp"
|
||||
android:layout_width="349dp"
|
||||
android:layout_height="57dp"
|
||||
android:layout_marginTop="@dimen/sw_126dp"
|
||||
android:layout_width="@dimen/sw_349dp"
|
||||
android:layout_height="@dimen/sw_57dp"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:gravity="center"
|
||||
android:background="@drawable/gold_coin_recharge_button_bg"
|
||||
android:scaleType="centerCrop"
|
||||
android:elevation="4dp"
|
||||
android:elevation="@dimen/sw_4dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="15sp"
|
||||
android:textSize="@dimen/sw_15sp"
|
||||
android:textStyle="bold"
|
||||
android:gravity="center"
|
||||
android:textColor="#1B1F1A"
|
||||
@@ -203,8 +203,8 @@
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="17dp"
|
||||
android:textSize="10sp"
|
||||
android:layout_marginTop="@dimen/sw_17dp"
|
||||
android:textSize="@dimen/sw_10sp"
|
||||
android:text="By clicking "pay", you indicate your agreement to the"
|
||||
android:textColor="#1B1F1A"
|
||||
android:gravity="center_horizontal"/>
|
||||
@@ -212,8 +212,8 @@
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="4dp"
|
||||
android:textSize="10sp"
|
||||
android:layout_marginTop="@dimen/sw_4dp"
|
||||
android:textSize="@dimen/sw_10sp"
|
||||
android:text="《Embership Agreement》"
|
||||
android:textColor="#02BEAC"
|
||||
android:gravity="center_horizontal" />
|
||||
|
||||
Reference in New Issue
Block a user