Files
peko-android/nim_uikit/res/layout/nim_message_activity_text_layout.xml

121 lines
4.8 KiB
XML
Raw Normal View History

2020-04-02 10:43:40 +08:00
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/textMessageLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-04-18 19:28:37 +08:00
android:gravity="center_vertical"
2020-04-02 10:43:40 +08:00
android:paddingBottom="@dimen/bottom_component_margin_vertical"
android:paddingTop="@dimen/bottom_component_margin_vertical">
<FrameLayout
android:id="@+id/switchLayout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-04-18 19:28:37 +08:00
android:layout_centerVertical="true"
2023-05-24 18:06:30 +08:00
android:layout_marginStart="@dimen/bottom_component_margin_horizontal"
android:layout_marginEnd="@dimen/bottom_component_margin_horizontal">
2020-04-02 10:43:40 +08:00
<ImageView
android:id="@+id/buttonAudioMessage"
2020-04-18 19:28:37 +08:00
android:layout_width="29dp"
android:layout_height="29dp"
2020-04-02 10:43:40 +08:00
android:background="@drawable/nim_message_button_bottom_audio_selector"
android:contentDescription="@string/empty"
android:scaleType="center" />
<ImageView
android:id="@+id/buttonTextMessage"
2020-04-18 19:28:37 +08:00
android:layout_width="29dp"
android:layout_height="29dp"
2020-04-02 10:43:40 +08:00
android:background="@drawable/nim_message_button_bottom_text_selector"
android:contentDescription="@string/empty"
android:scaleType="center" />
</FrameLayout>
<FrameLayout
android:id="@+id/audioTextSwitchLayout"
android:layout_width="0dip"
android:layout_height="30dp"
2020-04-02 10:43:40 +08:00
android:layout_alignBottom="@id/switchLayout"
2020-04-18 19:28:37 +08:00
android:layout_marginEnd="@dimen/bottom_component_margin_horizontal"
android:layout_toStartOf="@+id/emoji_button"
android:layout_toEndOf="@+id/switchLayout">
2020-04-02 10:43:40 +08:00
<Button
android:id="@+id/audioRecord"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/bg_message_voice"
2020-04-02 10:43:40 +08:00
android:text="@string/record_audio"
android:layout_gravity="center"
android:textColor="@color/white"
2020-04-02 10:43:40 +08:00
android:textSize="16sp"
android:visibility="gone" />
</FrameLayout>
<EditText
android:id="@+id/editTextMessage"
android:layout_width="match_parent"
android:layout_height="30dp"
2021-12-16 11:31:53 +08:00
android:layout_centerVertical="true"
2020-04-18 19:28:37 +08:00
android:layout_marginEnd="@dimen/bottom_component_margin_horizontal"
android:layout_toStartOf="@+id/emoji_button"
android:layout_toEndOf="@+id/switchLayout"
2020-04-02 10:43:40 +08:00
android:autoLink="web|email|phone"
2021-12-16 11:31:53 +08:00
android:background="@drawable/bg_message_input"
android:hint="@string/message_hint"
2020-04-02 10:43:40 +08:00
android:imeOptions="actionSend"
android:inputType="text"
2022-08-22 11:57:08 +08:00
android:maxLength="120"
2021-12-16 11:31:53 +08:00
android:maxLines="4"
2020-04-18 19:28:37 +08:00
android:paddingStart="@dimen/dp_10"
android:paddingEnd="10dp"
2023-05-31 14:16:06 +08:00
android:gravity="center_vertical"
2021-12-16 11:31:53 +08:00
android:textColor="@color/color_C6C6E9"
2022-10-17 20:42:46 +08:00
android:textColorHint="@color/color_b3b3b3"
2021-12-16 11:31:53 +08:00
android:textCursorDrawable="@null"
android:textSize="13sp" />
2020-04-02 10:43:40 +08:00
<ImageView
android:id="@+id/emoji_button"
2020-04-18 19:28:37 +08:00
android:layout_width="29dp"
android:layout_height="29dp"
android:layout_marginEnd="@dimen/bottom_component_margin_horizontal"
android:layout_toStartOf="@+id/sendLayout"
android:layout_centerVertical="true"
2020-04-02 10:43:40 +08:00
android:background="@drawable/nim_message_button_bottom_emoji_selector"
android:contentDescription="@string/empty"
android:scaleType="center" />
<FrameLayout
android:id="@+id/sendLayout"
android:layout_width="43dp"
android:layout_height="wrap_content"
2020-04-18 19:28:37 +08:00
android:layout_centerVertical="true"
android:layout_alignParentEnd="true"
android:layout_marginEnd="@dimen/bottom_component_margin_horizontal">
2020-04-02 10:43:40 +08:00
<ImageView
android:id="@+id/buttonMoreFuntionInText"
2020-04-18 19:28:37 +08:00
android:layout_width="29dp"
android:layout_height="29dp"
2020-04-02 10:43:40 +08:00
android:layout_gravity="center"
android:background="@drawable/nim_message_input_plus"
android:contentDescription="@string/empty"
android:scaleType="center" />
<TextView
android:id="@+id/buttonSendMessage"
android:layout_width="43dp"
2020-04-18 19:28:37 +08:00
android:layout_height="29dp"
2020-04-02 10:43:40 +08:00
android:background="@drawable/nim_message_button_bottom_send_selector"
android:contentDescription="@string/empty"
android:gravity="center"
android:text="@string/send"
android:textColor="@color/white"
android:textSize="@dimen/sp_12"
tools:visibility="visible" />
</FrameLayout>
</RelativeLayout>