Files
yuliao_and/app/src/main/res/layout/activity_aichat.xml
2025-08-08 15:07:09 +08:00

57 lines
2.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<com.netease.yunxin.kit.common.ui.widgets.BackTitleBar
android:id="@+id/titlebar_aichat"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_50"
android:background="@android:color/white"
app:layout_constraintTop_toTopOf="parent" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_chat"
android:layout_width="match_parent"
android:layout_height="0dp"
android:scrollbars="vertical"
app:layout_constraintBottom_toTopOf="@+id/layout_aichatbottom"
app:layout_constraintTop_toBottomOf="@+id/titlebar_aichat" />
<LinearLayout
android:id="@+id/layout_aichatbottom"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_60"
android:background="@android:color/white"
app:layout_constraintBottom_toBottomOf="parent">
<EditText
android:id="@+id/edit_inputchat"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_alignParentBottom="true"
android:layout_gravity="center_vertical"
android:layout_marginLeft="@dimen/dp_15"
android:layout_marginRight="@dimen/dp_15"
android:background="@drawable/bg_message_search_et"
android:ellipsize="end"
android:hint="@string/fun_chat_input_hint_tips"
android:imeOptions="actionSend"
android:inputType="text"
android:maxLength="2000"
android:paddingStart="@dimen/dimen_12_dp"
android:paddingEnd="@dimen/dimen_12_dp"
android:singleLine="true"
android:textColorHint="@color/color_b3b7bc"
android:textCursorDrawable="@null"
android:textSize="@dimen/text_size_16"
tools:ignore="LabelFor" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>