|
40 | 40 | <TextView
|
41 | 41 | android:id="@+id/titleText"
|
42 | 42 | style="@style/Widget.Vector.TextView.Body.Medium"
|
43 |
| - android:layout_width="wrap_content" |
| 43 | + android:layout_width="0dp" |
44 | 44 | android:layout_height="wrap_content"
|
| 45 | + android:layout_marginEnd="4dp" |
45 | 46 | android:contentDescription="@string/avatar"
|
| 47 | + android:ellipsize="end" |
| 48 | + android:maxLines="1" |
| 49 | + app:layout_constraintEnd_toStartOf="@id/liveIndicator" |
46 | 50 | app:layout_constraintStart_toEndOf="@id/avatarRightBarrier"
|
47 | 51 | app:layout_constraintTop_toTopOf="parent"
|
48 | 52 | tools:text="@sample/rooms.json/data/name" />
|
49 | 53 |
|
50 |
| - <androidx.constraintlayout.helper.widget.Flow |
51 |
| - android:id="@+id/metadataFlow" |
52 |
| - android:layout_width="wrap_content" |
| 54 | + <LinearLayout |
| 55 | + android:id="@+id/metadataGroup" |
| 56 | + android:layout_width="0dp" |
53 | 57 | android:layout_height="wrap_content"
|
54 | 58 | android:layout_marginTop="4dp"
|
| 59 | + android:layout_marginEnd="4dp" |
55 | 60 | android:orientation="vertical"
|
56 |
| - app:constraint_referenced_ids="broadcasterNameMetadata,bufferingMetadata,voiceBroadcastMetadata,listenersCountMetadata" |
57 |
| - app:flow_horizontalAlign="start" |
58 |
| - app:flow_verticalGap="4dp" |
| 61 | + app:layout_constraintEnd_toStartOf="@id/liveIndicator" |
59 | 62 | app:layout_constraintStart_toEndOf="@id/avatarRightBarrier"
|
60 |
| - app:layout_constraintTop_toBottomOf="@id/titleText" /> |
61 |
| - |
62 |
| - <im.vector.app.features.voicebroadcast.views.VoiceBroadcastMetadataView |
63 |
| - android:id="@+id/broadcasterNameMetadata" |
64 |
| - android:layout_width="wrap_content" |
65 |
| - android:layout_height="wrap_content" |
66 |
| - app:metadataIcon="@drawable/ic_voice_broadcast_mic" |
67 |
| - tools:metadataValue="@sample/users.json/data/displayName" /> |
68 |
| - |
69 |
| - <im.vector.app.features.voicebroadcast.views.VoiceBroadcastBufferingView |
70 |
| - android:id="@+id/bufferingMetadata" |
71 |
| - android:layout_width="wrap_content" |
72 |
| - android:layout_height="wrap_content" /> |
73 |
| - |
74 |
| - <im.vector.app.features.voicebroadcast.views.VoiceBroadcastMetadataView |
75 |
| - android:id="@+id/voiceBroadcastMetadata" |
76 |
| - android:layout_width="wrap_content" |
77 |
| - android:layout_height="wrap_content" |
78 |
| - app:metadataIcon="@drawable/ic_voice_broadcast" |
79 |
| - app:metadataValue="@string/attachment_type_voice_broadcast" /> |
80 |
| - |
81 |
| - <im.vector.app.features.voicebroadcast.views.VoiceBroadcastMetadataView |
82 |
| - android:id="@+id/listenersCountMetadata" |
83 |
| - android:layout_width="wrap_content" |
84 |
| - android:layout_height="wrap_content" |
85 |
| - app:metadataIcon="@drawable/ic_member_small" |
86 |
| - app:metadataValue="@string/no_value_placeholder" |
87 |
| - tools:metadataValue="5 listeners" /> |
| 63 | + app:layout_constraintTop_toBottomOf="@id/titleText"> |
| 64 | + |
| 65 | + <im.vector.app.features.voicebroadcast.views.VoiceBroadcastMetadataView |
| 66 | + android:id="@+id/broadcasterNameMetadata" |
| 67 | + android:layout_width="wrap_content" |
| 68 | + android:layout_height="wrap_content" |
| 69 | + android:layout_marginBottom="4dp" |
| 70 | + app:metadataIcon="@drawable/ic_voice_broadcast_mic" |
| 71 | + tools:metadataValue="@sample/users.json/data/displayName" /> |
| 72 | + |
| 73 | + <im.vector.app.features.voicebroadcast.views.VoiceBroadcastBufferingView |
| 74 | + android:id="@+id/bufferingMetadata" |
| 75 | + android:layout_width="wrap_content" |
| 76 | + android:layout_height="wrap_content" |
| 77 | + android:layout_marginBottom="4dp" /> |
| 78 | + |
| 79 | + <im.vector.app.features.voicebroadcast.views.VoiceBroadcastMetadataView |
| 80 | + android:id="@+id/voiceBroadcastMetadata" |
| 81 | + android:layout_width="wrap_content" |
| 82 | + android:layout_height="wrap_content" |
| 83 | + android:layout_marginBottom="4dp" |
| 84 | + app:metadataIcon="@drawable/ic_voice_broadcast" |
| 85 | + app:metadataValue="@string/attachment_type_voice_broadcast" /> |
| 86 | + |
| 87 | + <im.vector.app.features.voicebroadcast.views.VoiceBroadcastMetadataView |
| 88 | + android:id="@+id/listenersCountMetadata" |
| 89 | + android:layout_width="wrap_content" |
| 90 | + android:layout_height="wrap_content" |
| 91 | + android:layout_marginBottom="4dp" |
| 92 | + app:metadataIcon="@drawable/ic_member_small" |
| 93 | + app:metadataValue="@string/no_value_placeholder" |
| 94 | + tools:metadataValue="5 listeners" /> |
| 95 | + </LinearLayout> |
88 | 96 |
|
89 | 97 | <androidx.constraintlayout.widget.Barrier
|
90 | 98 | android:id="@+id/headerBottomBarrier"
|
91 | 99 | android:layout_width="wrap_content"
|
92 | 100 | android:layout_height="wrap_content"
|
93 | 101 | app:barrierDirection="bottom"
|
94 | 102 | app:barrierMargin="10dp"
|
95 |
| - app:constraint_referenced_ids="roomAvatarImageView,titleText,metadataFlow" /> |
| 103 | + app:constraint_referenced_ids="roomAvatarImageView,titleText,metadataGroup" /> |
96 | 104 |
|
97 | 105 | <androidx.constraintlayout.helper.widget.Flow
|
98 | 106 | android:id="@+id/controllerButtonsFlow"
|
|
0 commit comments