feat: add unread badge count for conversations (#560)
* feat: add unread badge count for conversations * fix: mark all messages read on thread open * fix: address some lint issues * fix: mark as read/unread in the local db as well * docs: update changelog Refs: https://github.com/FossifyOrg/Messages/issues/264, https://github.com/FossifyOrg/Messages/issues/177
This commit is contained in:
parent
627f19471e
commit
0a66c46f0d
8 changed files with 110 additions and 16 deletions
|
|
@ -88,12 +88,28 @@
|
|||
|
||||
<ImageView
|
||||
android:id="@+id/pin_indicator"
|
||||
android:layout_width="@dimen/pin_icon_size"
|
||||
android:layout_height="@dimen/pin_icon_size"
|
||||
android:layout_width="@dimen/small_icon_size"
|
||||
android:layout_height="@dimen/small_icon_size"
|
||||
android:alpha="0.7"
|
||||
android:padding="@dimen/tiny_margin"
|
||||
android:src="@drawable/ic_pin_filled_vector"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@id/conversation_body_short"
|
||||
app:layout_constraintEnd_toStartOf="@id/unread_count_badge"
|
||||
app:layout_constraintTop_toTopOf="@id/conversation_body_short"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/unread_count_badge"
|
||||
android:layout_width="@dimen/small_icon_size"
|
||||
android:layout_height="@dimen/small_icon_size"
|
||||
android:background="@drawable/circle_background"
|
||||
android:gravity="center"
|
||||
android:textSize="@dimen/list_tertiary_text_size"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@id/conversation_body_short"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@id/conversation_body_short" />
|
||||
|
||||
app:layout_constraintTop_toTopOf="@id/conversation_body_short"
|
||||
tools:text="42"
|
||||
tools:visibility="visible" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue