手机适配
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
android:id="@+id/swipeRefreshLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginBottom="40dp">
|
||||
android:layout_marginBottom="@dimen/sw_40dp">
|
||||
|
||||
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
||||
android:layout_width="match_parent"
|
||||
@@ -33,30 +33,30 @@
|
||||
android:id="@+id/headerContainer"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="16dp"
|
||||
android:padding="@dimen/sw_16dp"
|
||||
android:orientation="vertical"
|
||||
app:layout_scrollFlags="scroll|exitUntilCollapsed">
|
||||
|
||||
<!--消费记录,搜索、皮肤栏 -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_height="@dimen/sw_40dp"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/recordButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="32dp"
|
||||
android:layout_height="@dimen/sw_32dp"
|
||||
android:gravity="center"
|
||||
android:paddingStart="7dp"
|
||||
android:paddingEnd="7dp"
|
||||
android:paddingStart="@dimen/sw_7dp"
|
||||
android:paddingEnd="@dimen/sw_7dp"
|
||||
android:background="@drawable/shop_record_bg"
|
||||
android:orientation="horizontal">
|
||||
<ImageView
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="16dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:layout_width="@dimen/sw_15dp"
|
||||
android:layout_height="@dimen/sw_16dp"
|
||||
android:layout_marginEnd="@dimen/sw_4dp"
|
||||
android:src="@drawable/record" />
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
@@ -72,84 +72,84 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/searchButton"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_width="@dimen/sw_24dp"
|
||||
android:layout_height="@dimen/sw_24dp"
|
||||
android:layout_marginEnd="@dimen/sw_16dp"
|
||||
android:src="@drawable/search" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/skinButton"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_width="@dimen/sw_24dp"
|
||||
android:layout_height="@dimen/sw_24dp"
|
||||
android:layout_marginEnd="@dimen/sw_16dp"
|
||||
android:src="@drawable/skin" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 小星星 -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="110dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:elevation="1dp"
|
||||
android:layout_height="@dimen/sw_110dp"
|
||||
android:layout_marginTop="@dimen/sw_16dp"
|
||||
android:elevation="@dimen/sw_1dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="18dp"
|
||||
android:layout_height="18dp"
|
||||
android:layout_marginTop="62dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_width="@dimen/sw_18dp"
|
||||
android:layout_height="@dimen/sw_18dp"
|
||||
android:layout_marginTop="@dimen/sw_62dp"
|
||||
android:layout_marginStart="@dimen/sw_10dp"
|
||||
android:src="@drawable/yellow_star" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="68dp"
|
||||
android:layout_width="@dimen/sw_68dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:layout_marginStart="6dp"
|
||||
android:layout_marginTop="@dimen/sw_6dp"
|
||||
android:layout_marginStart="@dimen/sw_6dp"
|
||||
android:text="@string/shop_mall"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textStyle="bold"
|
||||
android:textSize="22sp" />
|
||||
android:textSize="@dimen/sw_22sp" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:layout_width="@dimen/sw_16dp"
|
||||
android:layout_height="@dimen/sw_16dp"
|
||||
android:src="@drawable/yellow_star" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginStart="62dp"
|
||||
android:layout_marginTop="60dp"
|
||||
android:layout_width="@dimen/sw_20dp"
|
||||
android:layout_height="@dimen/sw_20dp"
|
||||
android:layout_marginStart="@dimen/sw_62dp"
|
||||
android:layout_marginTop="@dimen/sw_60dp"
|
||||
android:src="@drawable/yellow_star" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="18dp"
|
||||
android:layout_height="18dp"
|
||||
android:layout_marginTop="62dp"
|
||||
android:layout_marginStart="2dp"
|
||||
android:layout_width="@dimen/sw_18dp"
|
||||
android:layout_height="@dimen/sw_18dp"
|
||||
android:layout_marginTop="@dimen/sw_62dp"
|
||||
android:layout_marginStart="@dimen/sw_2dp"
|
||||
android:src="@drawable/yellow_star" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:layout_marginTop="60dp"
|
||||
android:layout_marginStart="2dp"
|
||||
android:layout_width="@dimen/sw_16dp"
|
||||
android:layout_height="@dimen/sw_16dp"
|
||||
android:layout_marginTop="@dimen/sw_60dp"
|
||||
android:layout_marginStart="@dimen/sw_2dp"
|
||||
android:src="@drawable/yellow_star" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginTop="54dp"
|
||||
android:layout_marginStart="2dp"
|
||||
android:layout_width="@dimen/sw_14dp"
|
||||
android:layout_height="@dimen/sw_14dp"
|
||||
android:layout_marginTop="@dimen/sw_54dp"
|
||||
android:layout_marginStart="@dimen/sw_2dp"
|
||||
android:src="@drawable/blue_star" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- Points 卡片 -->
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="238dp"
|
||||
android:layout_marginTop="-110dp"
|
||||
android:elevation="10dp"
|
||||
android:layout_height="@dimen/sw_238dp"
|
||||
android:layout_marginTop="@dimen/_sw_110dp"
|
||||
android:elevation="@dimen/sw_10dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<!-- 点数背景 -->
|
||||
@@ -163,7 +163,7 @@
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="110dp"
|
||||
android:layout_marginTop="@dimen/sw_110dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
@@ -171,8 +171,8 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/shop_points"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="14sp"
|
||||
android:padding="20dp" />
|
||||
android:textSize="@dimen/sw_14sp"
|
||||
android:padding="@dimen/sw_20dp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
@@ -181,9 +181,9 @@
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="38dp"
|
||||
android:layout_height="38dp"
|
||||
android:layout_marginStart="20dp"
|
||||
android:layout_width="@dimen/sw_38dp"
|
||||
android:layout_height="@dimen/sw_38dp"
|
||||
android:layout_marginStart="@dimen/sw_20dp"
|
||||
android:src="@drawable/gold_coin" />
|
||||
|
||||
<TextView
|
||||
@@ -191,18 +191,18 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:layout_marginStart="@dimen/sw_10dp"
|
||||
android:layout_marginEnd="@dimen/sw_10dp"
|
||||
android:text="0.00"
|
||||
android:textColor="#02BEAC"
|
||||
android:textSize="40sp" />
|
||||
android:textSize="@dimen/sw_40sp" />
|
||||
|
||||
<!-- 按钮 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/rechargeButton"
|
||||
android:layout_width="114dp"
|
||||
android:layout_height="42dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:layout_width="@dimen/sw_114dp"
|
||||
android:layout_height="@dimen/sw_42dp"
|
||||
android:layout_marginEnd="@dimen/sw_10dp"
|
||||
android:gravity="center"
|
||||
android:background="@drawable/gold_coin_button"
|
||||
android:orientation="horizontal">
|
||||
@@ -210,7 +210,7 @@
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="13sp"
|
||||
android:textSize="@dimen/sw_13sp"
|
||||
android:textStyle="bold"
|
||||
android:gravity="center"
|
||||
android:textColor="#1B1F1A"
|
||||
@@ -226,9 +226,9 @@
|
||||
android:id="@+id/tagScroll"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:layout_marginBottom="18dp"
|
||||
android:paddingStart="@dimen/sw_16dp"
|
||||
android:paddingEnd="@dimen/sw_16dp"
|
||||
android:layout_marginBottom="@dimen/sw_18dp"
|
||||
android:fillViewport="true"
|
||||
android:scrollbars="none"
|
||||
android:overScrollMode="never">
|
||||
@@ -244,12 +244,12 @@
|
||||
android:gravity="center"
|
||||
android:text="@string/shop_title"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textSize="20sp" />
|
||||
android:textSize="@dimen/sw_20sp" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/tagContainer"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="30dp"
|
||||
android:layout_height="@dimen/sw_30dp"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center_vertical" />
|
||||
</LinearLayout>
|
||||
@@ -261,7 +261,7 @@
|
||||
android:id="@+id/viewPager"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginBottom="30dp"
|
||||
android:layout_marginBottom="@dimen/sw_30dp"
|
||||
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
||||
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
|
||||
Reference in New Issue
Block a user