手机适配
This commit is contained in:
@@ -32,19 +32,19 @@
|
||||
<!-- 成为会员 -->
|
||||
<ImageView
|
||||
android:id="@+id/vip"
|
||||
android:layout_width="216dp"
|
||||
android:layout_height="161dp"
|
||||
android:layout_width="@dimen/sw_216dp"
|
||||
android:layout_height="@dimen/sw_161dp"
|
||||
android:layout_gravity="top|center_horizontal"
|
||||
android:layout_marginTop="40dp"
|
||||
android:layout_marginTop="@dimen/sw_40dp"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/vip" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/member"
|
||||
android:layout_marginTop="28dp"
|
||||
android:layout_width="290dp"
|
||||
android:layout_marginTop="@dimen/sw_28dp"
|
||||
android:layout_width="@dimen/sw_290dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="18sp"
|
||||
android:textSize="@dimen/sw_18sp"
|
||||
android:textStyle="bold"
|
||||
android:textColor="#1B1F1A"
|
||||
android:layout_gravity="center_horizontal"
|
||||
@@ -53,17 +53,17 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/Unlock"
|
||||
android:layout_marginTop="3dp"
|
||||
android:layout_marginTop="@dimen/sw_3dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="14sp"
|
||||
android:textSize="@dimen/sw_14sp"
|
||||
android:textColor="#1B1F1A"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:text="@string/home_unlock" />
|
||||
|
||||
<!-- 权益 -->
|
||||
<LinearLayout
|
||||
android:layout_marginTop="22dp"
|
||||
android:layout_marginTop="@dimen/sw_22dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
@@ -80,15 +80,15 @@
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="54dp"
|
||||
android:layout_height="44dp"
|
||||
android:layout_width="@dimen/sw_54dp"
|
||||
android:layout_height="@dimen/sw_44dp"
|
||||
android:src="@drawable/ai_dialogue"
|
||||
android:scaleType="fitCenter" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="12sp"
|
||||
android:textSize="@dimen/sw_12sp"
|
||||
android:gravity="center"
|
||||
android:textColor="#1B1F1A"
|
||||
android:text="@string/home_ai_dialogue" />
|
||||
@@ -104,15 +104,15 @@
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="54dp"
|
||||
android:layout_height="44dp"
|
||||
android:layout_width="@dimen/sw_54dp"
|
||||
android:layout_height="@dimen/sw_44dp"
|
||||
android:src="@drawable/personalized_keyboard"
|
||||
android:scaleType="fitCenter" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="12sp"
|
||||
android:textSize="@dimen/sw_12sp"
|
||||
android:gravity="center"
|
||||
android:textColor="#1B1F1A"
|
||||
android:text="@string/home_ai_keyboard" />
|
||||
@@ -128,15 +128,15 @@
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="54dp"
|
||||
android:layout_height="44dp"
|
||||
android:layout_width="@dimen/sw_54dp"
|
||||
android:layout_height="@dimen/sw_44dp"
|
||||
android:src="@drawable/chat_persona"
|
||||
android:scaleType="fitCenter" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="12sp"
|
||||
android:textSize="@dimen/sw_12sp"
|
||||
android:gravity="center"
|
||||
android:textColor="#1B1F1A"
|
||||
android:text="@string/home_ai_persona" />
|
||||
@@ -152,15 +152,15 @@
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="54dp"
|
||||
android:layout_height="44dp"
|
||||
android:layout_width="@dimen/sw_54dp"
|
||||
android:layout_height="@dimen/sw_44dp"
|
||||
android:src="@drawable/emotional_counseling"
|
||||
android:scaleType="fitCenter" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="12sp"
|
||||
android:textSize="@dimen/sw_12sp"
|
||||
android:gravity="center"
|
||||
android:textColor="#1B1F1A"
|
||||
android:text="@string/home_ai_counseling" />
|
||||
@@ -170,19 +170,19 @@
|
||||
<!-- 按钮 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/rechargeButton"
|
||||
android:layout_marginTop="22dp"
|
||||
android:layout_width="257dp"
|
||||
android:layout_height="57dp"
|
||||
android:layout_marginTop="@dimen/sw_22dp"
|
||||
android:layout_width="@dimen/sw_257dp"
|
||||
android:layout_height="@dimen/sw_57dp"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:gravity="center"
|
||||
android:background="@drawable/button_bg"
|
||||
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"
|
||||
@@ -208,7 +208,7 @@
|
||||
android:layout_gravity="bottom"
|
||||
android:backgroundTint="@android:color/white"
|
||||
app:cardUseCompatPadding="false"
|
||||
app:cardElevation="8dp"
|
||||
app:cardElevation="@dimen/sw_8dp"
|
||||
app:cardBackgroundColor="@android:color/white"
|
||||
app:shapeAppearance="@style/ShapeAppearance.TopRoundedOnly"
|
||||
app:layout_behavior="@string/bottom_sheet_behavior">
|
||||
@@ -231,16 +231,16 @@
|
||||
<LinearLayout
|
||||
android:id="@+id/bottomSheetHeader"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_height="@dimen/sw_48dp"
|
||||
android:gravity="center"
|
||||
android:paddingTop="8dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:paddingTop="@dimen/sw_8dp"
|
||||
android:paddingBottom="@dimen/sw_8dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<!-- 小横条指示器 -->
|
||||
<View
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="4dp"
|
||||
android:layout_width="@dimen/sw_40dp"
|
||||
android:layout_height="@dimen/sw_4dp"
|
||||
android:background="@drawable/bs_handle_bg" />
|
||||
</LinearLayout>
|
||||
|
||||
@@ -248,21 +248,21 @@
|
||||
<LinearLayout
|
||||
android:id="@+id/topTabs"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_height="@dimen/sw_40dp"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp">
|
||||
android:paddingStart="@dimen/sw_16dp"
|
||||
android:paddingEnd="@dimen/sw_16dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tab_list1"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginEnd="20dp"
|
||||
android:layout_marginEnd="@dimen/sw_20dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/home_tab1"
|
||||
android:textSize="14sp"
|
||||
android:textSize="@dimen/sw_14sp"
|
||||
android:textStyle="bold"
|
||||
android:textColor="#1B1F1A" />
|
||||
|
||||
@@ -271,10 +271,10 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginStart="20dp"
|
||||
android:layout_marginStart="@dimen/sw_20dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/home_tab2"
|
||||
android:textSize="14sp"
|
||||
android:textSize="@dimen/sw_14sp"
|
||||
android:textColor="#801B1F1A" />
|
||||
</LinearLayout>
|
||||
|
||||
@@ -282,7 +282,7 @@
|
||||
<HorizontalScrollView
|
||||
android:id="@+id/tagScroll"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_height="@dimen/sw_40dp"
|
||||
android:visibility="gone"
|
||||
android:fillViewport="true"
|
||||
android:scrollbars="none"
|
||||
@@ -310,12 +310,12 @@
|
||||
<!-- 浮动按钮 -->
|
||||
<ImageView
|
||||
android:id="@+id/floatingImage"
|
||||
android:layout_width="92dp"
|
||||
android:layout_height="78dp"
|
||||
android:elevation="99dp"
|
||||
android:layout_width="@dimen/sw_92dp"
|
||||
android:layout_height="@dimen/sw_78dp"
|
||||
android:elevation="@dimen/sw_99dp"
|
||||
android:layout_gravity="center_vertical|end"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginTop="80dp"
|
||||
android:layout_marginEnd="@dimen/sw_16dp"
|
||||
android:layout_marginTop="@dimen/sw_80dp"
|
||||
android:src="@drawable/floating"
|
||||
android:scaleType="centerInside" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user