语言设置增加

This commit is contained in:
ningwenqiang
2024-09-27 16:19:16 +08:00
parent f92406efa7
commit ea391a648a
6 changed files with 160 additions and 2 deletions

View File

@@ -45,11 +45,72 @@
app:srcCompat="@mipmap/special_icon_off" />
</LinearLayout>
<LinearLayout
android:id="@+id/robot_language"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/robot_status"
android:layout_marginTop="18dp"
android:orientation="horizontal">
<androidx.appcompat.widget.AppCompatTextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginStart="10dp"
android:layout_weight="1"
android:text="@string/ai_anguage_settings"
android:textColor="#FFF"
android:textSize="15sp" />
<ImageView
android:id="@+id/languageZhImgView"
android:layout_width="wrap_content"
android:padding="2dp"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:src="@drawable/selector_protocol_check"
app:layout_constraintStart_toStartOf="parent" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/languageZhTv"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center"
android:layout_gravity="center_vertical"
android:paddingStart="5dp"
android:paddingEnd="5dp"
android:text="中文"
android:textColor="#FFF"
android:textSize="15sp" />
<ImageView
android:id="@+id/languageEnImgView"
android:layout_width="wrap_content"
android:padding="2dp"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:layout_marginStart="12dp"
android:src="@drawable/selector_protocol_check"
app:layout_constraintStart_toStartOf="parent" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/languageEnTv"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center"
android:layout_gravity="center_vertical"
android:paddingStart="5dp"
android:paddingEnd="5dp"
android:text="English"
android:layout_marginEnd="10dp"
android:textColor="#FFF"
android:textSize="15sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/robot_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/robot_status"
android:layout_below="@+id/robot_language"
android:layout_marginTop="20dp"
android:orientation="horizontal">

View File

@@ -1503,4 +1503,5 @@ Limited ride And limited avatar frame</string>
<string name="live_interaction_game">Game</string>
<string name="live_interaction_god_say">Notice</string>
<string name="live_interaction_ask_question">Start Q&amp;A</string>
<string name="ai_anguage_settings">Language Settings</string>
</resources>

View File

@@ -1633,4 +1633,5 @@
<string name="live_interaction_game">互動遊戲</string>
<string name="live_interaction_god_say">女神說</string>
<string name="live_interaction_ask_question">發起問答</string>
<string name="ai_anguage_settings">机器人语言设置</string>
</resources>

View File

@@ -1448,4 +1448,5 @@ Limited ride And limited avatar frame</string>
<string name="live_interaction_god_say">Notice</string>
<string name="live_interaction_ask_question">Start Q&amp;A</string>
<string name="open_vip_live">开通贵族</string>
<string name="ai_anguage_settings">Language Settings</string>
</resources>