新增字号设置
This commit is contained in:
180
common/src/main/res/layout/dialog_live_font_size.xml
Normal file
180
common/src/main/res/layout/dialog_live_font_size.xml
Normal file
@@ -0,0 +1,180 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="249dp"
|
||||
android:background="@drawable/bg_live_tota"
|
||||
|
||||
android:orientation="vertical">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/dialog_live_fount_title"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:textColor="#F6F7FB"
|
||||
android:textSize="17sp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/submit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/dialog_fount_submit"
|
||||
android:textColor="#FFC621"
|
||||
android:textSize="14sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:layout_marginRight="10dp"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/line_fhd"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="137dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_btn_definition"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/icon_fhd"
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:visibility="gone"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:src="@mipmap/icon_selected" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/fhd"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="32dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="39dp"
|
||||
android:visibility="gone"
|
||||
android:src="@mipmap/icon_sd" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/fhd_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/fhd"
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_marginTop="4dp"
|
||||
android:text="@string/live_room_chat_fount_size_high"
|
||||
android:textColor="#F6F7FB"
|
||||
android:textSize="16sp" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/line_hd"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="137dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_btn_definition"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/icon_hd"
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
android:visibility="gone"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_margin="10dp"
|
||||
android:src="@mipmap/icon_selected" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/hd"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="32dp"
|
||||
android:visibility="gone"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="39dp"
|
||||
android:src="@mipmap/icon_hd" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/hd_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/hd"
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_marginTop="4dp"
|
||||
android:text="@string/live_room_chat_fount_size_def"
|
||||
android:textColor="#F6F7FB"
|
||||
android:textSize="16sp" />
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/line_sd"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="137dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_btn_definition"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/icon_sd"
|
||||
android:layout_width="14dp"
|
||||
android:visibility="gone"
|
||||
android:layout_height="14dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_margin="10dp"
|
||||
android:src="@mipmap/icon_selected" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/sd"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="32dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="39dp"
|
||||
android:visibility="gone"
|
||||
android:src="@mipmap/icon_fhd" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/sd_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/sd"
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_marginTop="4dp"
|
||||
android:text="@string/live_room_chat_fount_size_low"
|
||||
android:textColor="#F6F7FB"
|
||||
android:textSize="16sp" />
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tips"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginBottom="30dp"
|
||||
android:visibility="gone"
|
||||
android:text="@string/clarity_hint"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="12sp" />
|
||||
|
||||
</LinearLayout>
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="170dp"
|
||||
android:layout_width="220dp"
|
||||
android:layout_height="62dp"
|
||||
app:cardBackgroundColor="#0F0B14"
|
||||
app:cardCornerRadius="4dp"
|
||||
@@ -19,18 +19,18 @@
|
||||
android:layout_marginStart="10dp"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone">
|
||||
>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="26dp"
|
||||
android:layout_height="26dp"
|
||||
android:src="@mipmap/live_more_icon_special_new" />
|
||||
android:src="@mipmap/icon_live_font" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="2dp"
|
||||
android:text="@string/effects_settings"
|
||||
android:text="@string/live_chat_font_settings"
|
||||
android:textColor="#FF9A9A9A"
|
||||
android:textSize="10sp" />
|
||||
</LinearLayout>
|
||||
|
||||
BIN
common/src/main/res/mipmap-mdpi/icon_live_font.png
Normal file
BIN
common/src/main/res/mipmap-mdpi/icon_live_font.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
@@ -912,6 +912,7 @@
|
||||
<string name="activity_center">活動中心</string>
|
||||
<string name="basic_tools">基礎工具</string>
|
||||
<string name="effects_settings">特效設置</string>
|
||||
<string name="live_chat_font_settings">字號設置</string>
|
||||
<string name="shield_gift_effect">屏蔽禮物特效</string>
|
||||
<string name="shield_mount_effect">屏蔽座駕特效</string>
|
||||
<string name="current_live_room">您已在當前直播間</string>
|
||||
@@ -1119,4 +1120,9 @@
|
||||
<string name="add_gift2">添加禮物、貴族、守護心願</string>
|
||||
<string name="heat_add">热度加成</string>
|
||||
<string name="must_hint">最多只能设置10条</string>
|
||||
<string name="live_room_chat_fount_size_low">小</string>
|
||||
<string name="live_room_chat_fount_size_def">默认</string>
|
||||
<string name="live_room_chat_fount_size_high">大</string>
|
||||
<string name="dialog_live_fount_title">選擇字號大小</string>
|
||||
<string name="dialog_fount_submit">確認</string>
|
||||
</resources>
|
||||
|
||||
@@ -912,6 +912,7 @@
|
||||
<string name="activity_center">活動中心</string>
|
||||
<string name="basic_tools">基礎工具</string>
|
||||
<string name="effects_settings">特效設置</string>
|
||||
<string name="live_chat_font_settings">字號設置</string>
|
||||
<string name="shield_gift_effect">屏蔽禮物特效</string>
|
||||
<string name="shield_mount_effect">屏蔽座駕特效</string>
|
||||
<string name="current_live_room">您已在當前直播間</string>
|
||||
@@ -1119,4 +1120,9 @@
|
||||
<string name="add_gift2">添加禮物、貴族、守護心願</string>
|
||||
<string name="heat_add">热度加成</string>
|
||||
<string name="must_hint">最多只能设置10条</string>
|
||||
<string name="live_room_chat_fount_size_low">小</string>
|
||||
<string name="live_room_chat_fount_size_def">默认</string>
|
||||
<string name="live_room_chat_fount_size_high">大</string>
|
||||
<string name="dialog_live_fount_title">選擇字號大小</string>
|
||||
<string name="dialog_fount_submit">確認</string>
|
||||
</resources>
|
||||
|
||||
@@ -912,6 +912,7 @@
|
||||
<string name="activity_center">活動中心</string>
|
||||
<string name="basic_tools">基礎工具</string>
|
||||
<string name="effects_settings">特效設置</string>
|
||||
<string name="live_chat_font_settings">字號設置</string>
|
||||
<string name="shield_gift_effect">屏蔽禮物特效</string>
|
||||
<string name="shield_mount_effect">屏蔽座駕特效</string>
|
||||
<string name="current_live_room">您已在當前直播間</string>
|
||||
@@ -1119,4 +1120,9 @@
|
||||
<string name="add_gift2">添加禮物、貴族、守護心願</string>
|
||||
<string name="heat_add">热度加成</string>
|
||||
<string name="must_hint">最多只能设置10条</string>
|
||||
<string name="live_room_chat_fount_size_low">小</string>
|
||||
<string name="live_room_chat_fount_size_def">默认</string>
|
||||
<string name="live_room_chat_fount_size_high">大</string>
|
||||
<string name="dialog_live_fount_title">選擇字號大小</string>
|
||||
<string name="dialog_fount_submit">確認</string>
|
||||
</resources>
|
||||
|
||||
@@ -872,6 +872,7 @@ Limited ride And limited avatar frame</string>
|
||||
<string name="activity_center">Activity</string>
|
||||
<string name="basic_tools">Basic tools</string>
|
||||
<string name="effects_settings">Effect settings</string>
|
||||
<string name="live_chat_font_settings">Font settings</string>
|
||||
<string name="shield_gift_effect">Shield gift effect</string>
|
||||
<string name="shield_mount_effect">Shield car effect</string>
|
||||
<string name="current_live_room">You are in the current live room</string>
|
||||
@@ -1125,5 +1126,10 @@ Limited ride And limited avatar frame</string>
|
||||
<string name="unfollow"> Where is the host doing badly~\nBrother, are you sure you want to unfollow?</string>
|
||||
<string name="unfollow_confrim">follow</string>
|
||||
<string name="heat_add">Heat Add</string>
|
||||
<string name="live_room_chat_fount_size_low">LOW</string>
|
||||
<string name="live_room_chat_fount_size_def">DEFAULT</string>
|
||||
<string name="live_room_chat_fount_size_high">HIGH</string>
|
||||
<string name="dialog_live_fount_title">Select font size</string>
|
||||
<string name="dialog_fount_submit">confirm</string>
|
||||
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user