设置页面 start new chat

This commit is contained in:
renhaoting 2025-10-31 13:39:09 +08:00
parent 4ffe56ffc6
commit 64e5dfd17e
4 changed files with 339 additions and 298 deletions

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle"
>
<size
android:width="285dp"
android:height="50dp"
/>
<corners android:radius="25dp" />
<gradient android:type="linear"
android:angle="0"
android:startColor="#ffa653ff"
android:endColor="#ff009dff"
/>
</shape>

View File

@ -1,18 +1,11 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView <com.remax.visualnovel.widget.uitoken.view.UITokenRelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@color/white" android:background="@color/white"
> >
<com.remax.visualnovel.widget.uitoken.view.UITokenLinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="@dimen/dp_20"
>
<com.remax.visualnovel.widget.uitoken.view.UITokenTextView <com.remax.visualnovel.widget.uitoken.view.UITokenTextView
android:id="@+id/tvTitle" android:id="@+id/tvTitle"
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -21,27 +14,56 @@
android:textStyle="bold" android:textStyle="bold"
android:textColor="@color/black" android:textColor="@color/black"
android:text="@string/setting" android:text="@string/setting"
android:layout_marginStart="@dimen/dp_20"
android:layout_marginTop="@dimen/dp_30"
android:layout_marginBottom="@dimen/dp_20"
/> />
<com.remax.visualnovel.widget.uitoken.view.UITokenFrameLayout
android:id="@+id/tv_start_new_chat"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/setting_new_chat_bg"
android:layout_margin="@dimen/dp_20"
android:padding="@dimen/dp_13"
android:layout_alignParentBottom="true"
>
<com.remax.visualnovel.widget.uitoken.view.UITokenTextView <com.remax.visualnovel.widget.uitoken.view.UITokenTextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_45"
android:padding="@dimen/dp_45"
android:text="Test....Test"
app:advBgColor="@color/glo_color_blue_80"
app:advRadius="@dimen/dp_30"
app:advStrokeColor="@color/black"
app:advStrokeWidth="@dimen/dp_5"
android:gravity="center" android:gravity="center"
android:layout_gravity="center"
app:drawableLeftCompat="@mipmap/setting_new_chat"
android:drawableTint="@color/white"
android:drawablePadding="@dimen/dp_10"
android:textSize="@dimen/sp_17"
android:textStyle="bold"
android:textColor="@color/white"
android:text="@string/start_new_chat"
/> />
</com.remax.visualnovel.widget.uitoken.view.UITokenFrameLayout>
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:layout_below="@+id/tvTitle"
android:layout_above="@+id/tv_start_new_chat"
>
<com.remax.visualnovel.widget.uitoken.view.UITokenLinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="@dimen/dp_20"
>
<!-- Ai model selecting related --> <!-- Ai model selecting related -->
<com.remax.visualnovel.widget.uitoken.view.UITokenTextView <com.remax.visualnovel.widget.uitoken.view.UITokenTextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="28dp" android:layout_marginTop="@dimen/dp_5"
android:text="@string/setting_switch_model" android:text="@string/setting_switch_model"
android:textColor="@color/gray3" android:textColor="@color/gray3"
android:textSize="@dimen/sp_16" android:textSize="@dimen/sp_16"
@ -327,3 +349,6 @@
</com.remax.visualnovel.widget.uitoken.view.UITokenLinearLayout> </com.remax.visualnovel.widget.uitoken.view.UITokenLinearLayout>
</androidx.core.widget.NestedScrollView> </androidx.core.widget.NestedScrollView>
</com.remax.visualnovel.widget.uitoken.view.UITokenRelativeLayout>

Binary file not shown.

After

Width:  |  Height:  |  Size: 752 B

View File

@ -485,5 +485,6 @@
<string name="chat_mode">Chat Mode</string> <string name="chat_mode">Chat Mode</string>
<string name="call_connecting">Connecting...</string> <string name="call_connecting">Connecting...</string>
<string name="call_fail_hint">Network connection issue. Please check your connection and try again.</string> <string name="call_fail_hint">Network connection issue. Please check your connection and try again.</string>
<string name="start_new_chat">Start New Chat</string>
</resources> </resources>