|
103 | 103 | android:visibility="visible"
|
104 | 104 | app:layout_constrainedWidth="true"
|
105 | 105 | app:layout_constraintBottom_toBottomOf="parent"
|
106 |
| - app:layout_constraintEnd_toStartOf="@+id/unreadCountIndicator" |
| 106 | + app:layout_constraintEnd_toStartOf="@+id/unreadCountTextView" |
107 | 107 | app:layout_constraintHorizontal_bias="0"
|
108 | 108 | app:layout_constraintHorizontal_chainStyle="packed"
|
109 | 109 | app:layout_constraintStart_toEndOf="@+id/iconPinned"
|
|
131 | 131 |
|
132 | 132 | </androidx.constraintlayout.widget.ConstraintLayout>
|
133 | 133 |
|
134 |
| - <RelativeLayout |
135 |
| - android:id="@+id/unreadCountIndicator" |
| 134 | + <TextView |
| 135 | + android:id="@+id/unreadCountTextView" |
136 | 136 | android:layout_width="wrap_content"
|
137 | 137 | android:layout_height="20dp"
|
138 |
| - android:layout_marginStart="4dp" |
| 138 | + android:layout_marginStart="@dimen/very_small_spacing" |
| 139 | + android:background="@drawable/rounded_rectangle" |
| 140 | + android:backgroundTint="?unreadIndicatorBackgroundColor" |
| 141 | + android:gravity="center" |
| 142 | + android:includeFontPadding="true" |
| 143 | + android:maxWidth="40dp" |
| 144 | + android:minWidth="20dp" |
| 145 | + android:paddingHorizontal="@dimen/very_small_spacing" |
| 146 | + android:textColor="?unreadIndicatorTextColor" |
| 147 | + android:textSize="@dimen/very_small_font_size" |
| 148 | + android:textStyle="bold" |
| 149 | + app:layout_constrainedWidth="true" |
| 150 | + app:layout_constraintBottom_toBottomOf="parent" |
| 151 | + app:layout_constraintEnd_toStartOf="@id/unreadMentionBadge" |
139 | 152 | app:layout_constraintStart_toEndOf="@id/markedUnreadIndicator"
|
140 |
| - app:layout_constraintEnd_toStartOf="@id/unreadMentionIndicator" |
141 | 153 | app:layout_constraintTop_toTopOf="parent"
|
142 |
| - app:layout_constraintBottom_toBottomOf="parent" |
143 |
| - android:minWidth="20dp" |
144 |
| - android:maxWidth="40dp" |
145 |
| - android:paddingLeft="4dp" |
146 |
| - android:paddingRight="4dp" |
147 |
| - android:background="@drawable/rounded_rectangle" |
148 |
| - android:backgroundTint="?unreadIndicatorBackgroundColor"> |
149 |
| - |
150 |
| - <TextView |
151 |
| - android:id="@+id/unreadCountTextView" |
152 |
| - android:layout_width="wrap_content" |
153 |
| - android:layout_height="wrap_content" |
154 |
| - android:layout_centerInParent="true" |
155 |
| - android:textColor="?unreadIndicatorTextColor" |
156 |
| - android:textSize="@dimen/very_small_font_size" |
157 |
| - android:textStyle="bold" |
158 |
| - tools:text="8"/> |
| 154 | + tools:text="88" /> |
159 | 155 |
|
160 |
| - </RelativeLayout> |
161 |
| - |
162 |
| - <RelativeLayout |
163 |
| - android:id="@+id/unreadMentionIndicator" |
| 156 | + <TextView |
| 157 | + android:id="@+id/unreadMentionBadge" |
164 | 158 | android:layout_width="wrap_content"
|
165 | 159 | android:layout_height="20dp"
|
166 |
| - android:layout_marginStart="4dp" |
167 |
| - app:layout_constraintStart_toEndOf="@id/unreadCountIndicator" |
168 |
| - app:layout_constraintEnd_toStartOf="@id/timestampTextView" |
169 |
| - app:layout_constraintTop_toTopOf="parent" |
170 |
| - app:layout_constraintBottom_toBottomOf="parent" |
171 |
| - android:minWidth="20dp" |
172 |
| - android:maxWidth="40dp" |
173 |
| - android:paddingLeft="4dp" |
174 |
| - android:paddingRight="4dp" |
| 160 | + android:layout_marginStart="@dimen/very_small_spacing" |
175 | 161 | android:background="@drawable/rounded_rectangle"
|
176 |
| - android:backgroundTint="?unreadIndicatorBackgroundColor"> |
177 |
| - |
178 |
| - <TextView |
179 |
| - android:id="@+id/unreadMentionTextView" |
180 |
| - android:layout_width="wrap_content" |
181 |
| - android:layout_height="wrap_content" |
182 |
| - android:layout_centerInParent="true" |
183 |
| - android:paddingBottom="3dp" |
184 |
| - android:textColor="?unreadIndicatorTextColor" |
185 |
| - android:textSize="@dimen/very_small_font_size" |
186 |
| - android:textStyle="bold" |
187 |
| - android:text="@" /> |
188 |
| - |
189 |
| - </RelativeLayout> |
| 162 | + android:backgroundTint="?unreadIndicatorBackgroundColor" |
| 163 | + android:gravity="center" |
| 164 | + android:includeFontPadding="true" |
| 165 | + android:maxWidth="40dp" |
| 166 | + android:minWidth="20dp" |
| 167 | + android:paddingHorizontal="@dimen/very_small_spacing" |
| 168 | + android:paddingBottom="@dimen/very_small_spacing" |
| 169 | + android:text="@" |
| 170 | + android:textColor="?unreadIndicatorTextColor" |
| 171 | + android:textSize="@dimen/very_small_font_size" |
| 172 | + android:textStyle="bold" |
| 173 | + app:layout_constrainedWidth="true" |
| 174 | + app:layout_constraintBottom_toBottomOf="parent" |
| 175 | + app:layout_constraintEnd_toStartOf="@id/timestampTextView" |
| 176 | + app:layout_constraintStart_toEndOf="@id/unreadCountTextView" |
| 177 | + app:layout_constraintTop_toTopOf="parent" /> |
190 | 178 |
|
191 | 179 | <TextView
|
192 | 180 | android:id="@+id/timestampTextView"
|
|
0 commit comments