Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit 00388ab

Browse files
committed
Visual Fix: Have stream arrows nicely fill & center when topic wraps to two lines
1 parent 01f28b2 commit 00388ab

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

app/src/main/res/drawable/triangle.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<group android:name="triableGroup">
88
<path
99
android:name="triangle"
10-
android:fillColor="@color/stream_header"
10+
android:fillColor="@color/colorAccent"
1111
android:pathData="M0 0 L0 0 L10 5 L0 10 Z" />
1212
</group>
1313
</vector>

app/src/main/res/layout/message_header.xml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,38 @@
77
<TextView
88
android:id="@+id/displayRecipient"
99
android:layout_width="wrap_content"
10-
android:layout_height="wrap_content"
10+
android:layout_height="match_parent"
1111
android:background="@color/stream_header"
12-
android:gravity="center_horizontal"
12+
android:gravity="center"
1313
android:padding="4dp"
1414
android:paddingLeft="10dp"
1515
android:paddingStart="10dp"
1616
android:text="@string/stream_txt"
1717
android:textColor="@color/colorTextPrimary"
1818
android:textStyle="bold"
19-
tools:text="Stream" />
19+
tools:text="Short Stream"
20+
tools:background="@color/colorAccent"
21+
/>
2022

2123
<TextView
2224
android:id="@+id/sep"
2325
android:layout_width="wrap_content"
24-
android:layout_height="wrap_content"
26+
android:layout_height="match_parent"
2527
android:background="@drawable/triangle"
2628
android:padding="4dp"
27-
android:text=" " />
29+
android:text=" "
30+
/>
2831

2932
<TextView
3033
android:id="@+id/instance"
3134
android:layout_width="0dp"
3235
android:layout_height="wrap_content"
3336
android:layout_marginLeft="7dp"
3437
android:layout_weight="1"
38+
android:gravity="center_vertical"
3539
android:background="@color/messageHeaderBackground"
3640
android:padding="4dp"
37-
android:text="@string/subject" />
41+
tools:text="This is a very very very long topic that is so long that it wraps" />
3842

3943
<ImageView
4044
android:id="@+id/muteMessageImage"

0 commit comments

Comments
 (0)