mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-10 08:00:57 +00:00
layout - edit message view
Signed-off-by: Sowjanya Kota <101803542+sowjanyakch@users.noreply.github.com> Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
2b24c69cbf
commit
cc8719668d
@ -133,6 +133,7 @@
|
||||
<include layout="@layout/item_custom_incoming_text_message_shimmer" />
|
||||
|
||||
<include layout="@layout/item_custom_incoming_text_message_shimmer" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<com.stfalcon.chatkit.messages.MessagesList
|
||||
@ -258,6 +259,12 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
<include
|
||||
layout = "@layout/edit_message_view"
|
||||
android:layout_width = "match_parent"
|
||||
android:layout_height = "wrap_content"
|
||||
android:layout_above = "@id/messageInputView">
|
||||
</include>
|
||||
|
||||
<com.nextcloud.talk.ui.MessageInput
|
||||
android:id="@+id/messageInputView"
|
||||
|
64
app/src/main/res/layout/edit_message_view.xml
Normal file
64
app/src/main/res/layout/edit_message_view.xml
Normal file
@ -0,0 +1,64 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
|
||||
<merge 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="wrap_content">
|
||||
|
||||
<LinearLayout
|
||||
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation = "horizontal">
|
||||
|
||||
<ImageView
|
||||
android:id = "@+id/editImage"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:padding = "12dp"
|
||||
android:src = "@drawable/ic_edit_24"
|
||||
android:layout_gravity = "start|top"
|
||||
app:tint="@color/colorPrimaryDark">
|
||||
|
||||
</ImageView>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight = "1"
|
||||
android:orientation = "vertical">
|
||||
<TextView
|
||||
android:id = "@+id/editMessageTitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor = "@color/colorPrimaryDark"
|
||||
android:text = "Edit Message">
|
||||
|
||||
</TextView>
|
||||
|
||||
<TextView
|
||||
android:id = "@+id/editMessage"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="end"
|
||||
android:maxLines = "1"
|
||||
tools:text = "Edit message very very very very very very very very very very long">
|
||||
</TextView>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
android:id = "@+id/clearEdit"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:padding = "8dp"
|
||||
android:src = "@drawable/ic_clear_24"
|
||||
android:gravity = "top|end"
|
||||
app:tint="@color/colorPrimaryDark">
|
||||
|
||||
</ImageView>
|
||||
|
||||
</LinearLayout>
|
||||
</merge>
|
Loading…
Reference in New Issue
Block a user