Fixed display of chat events

This commit is contained in:
Sylvain Berfini 2018-11-23 17:39:33 +01:00
parent 0394ca2525
commit 851b219775

View file

@ -28,32 +28,21 @@
android:orientation="horizontal" android:orientation="horizontal"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_toLeftOf="@id/rightAnchor" android:layout_toLeftOf="@id/delete_message"
android:layout_marginTop="5dp" android:layout_marginTop="5dp"
android:layout_marginBottom="5dp" android:layout_marginBottom="5dp"
android:gravity="center_vertical"> android:gravity="center"
android:background="@drawable/event_decoration_gray">
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_marginRight="10dp"
android:src="@drawable/event_decoration_gray"
android:scaleType="fitXY"/>
<TextView <TextView
android:id="@+id/event_text" android:id="@+id/event_text"
android:textAppearance="@style/font_group_chat_event"
android:background="@color/colorH"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content"/> android:layout_height="wrap_content"/>
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_marginLeft="10dp"
android:src="@drawable/event_decoration_gray"
android:scaleType="fitXY"/>
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
@ -62,32 +51,20 @@
android:orientation="horizontal" android:orientation="horizontal"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_toLeftOf="@id/rightAnchor" android:layout_toLeftOf="@id/delete_message"
android:layout_marginTop="5dp" android:layout_marginTop="5dp"
android:layout_marginBottom="5dp" android:layout_marginBottom="5dp"
android:gravity="center_vertical"> android:gravity="center"
android:background="@drawable/event_decoration_red">
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_marginRight="10dp"
android:src="@drawable/event_decoration_red"
android:scaleType="fitXY"/>
<TextView <TextView
android:id="@+id/security_event_text" android:id="@+id/security_event_text"
android:textAppearance="@style/font_group_chat_event"
android:background="@color/colorI"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"/>
android:textColor="@color/colorI"/>
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_marginLeft="10dp"
android:src="@drawable/event_decoration_red"
android:scaleType="fitXY"/>
</LinearLayout> </LinearLayout>