From be45132d241ad90b0a6eba45338f5cfa5e26be43 Mon Sep 17 00:00:00 2001 From: Jelena Petrovic Date: Wed, 7 Dec 2022 16:39:12 +0100 Subject: Prikaz duze poruke u cetu #80 --- Client/BrzoDoLokacije/app/src/main/res/layout/chat_message.xml | 6 ++++-- .../BrzoDoLokacije/app/src/main/res/layout/chat_message_other.xml | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/chat_message.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/chat_message.xml index f7ef08c..0642a58 100644 --- a/Client/BrzoDoLokacije/app/src/main/res/layout/chat_message.xml +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/chat_message.xml @@ -24,7 +24,7 @@ android:id="@+id/cvContainer" android:layout_width="wrap_content" android:minWidth="40dp" - android:layout_height="30dp" + android:layout_height="wrap_content" android:layout_marginBottom="10dp" android:layout_marginLeft="10dp" android:backgroundTint="@color/unfollow" @@ -38,10 +38,12 @@ android:id="@+id/tvMessage" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:maxLines="50" + android:maxWidth="300dp" android:backgroundTint="@color/unfollow" android:padding="5dp" android:paddingHorizontal="15dp" - android:text="blabla" + app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent" /> diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/chat_message_other.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/chat_message_other.xml index b076cf8..68a796d 100644 --- a/Client/BrzoDoLokacije/app/src/main/res/layout/chat_message_other.xml +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/chat_message_other.xml @@ -23,7 +23,7 @@ android:id="@+id/cvContainer" android:layout_width="wrap_content" android:minWidth="40dp" - android:layout_height="30dp" + android:layout_height="wrap_content" android:layout_marginBottom="10dp" android:layout_marginLeft="10dp" android:backgroundTint="#eef1f6" @@ -37,10 +37,12 @@ android:id="@+id/tvMessage" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:maxLines="50" + android:maxWidth="300dp" android:backgroundTint="#eef1f6" android:padding="5dp" android:paddingHorizontal="15dp" - android:text="blabla" + app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent" /> -- cgit v1.2.3