mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
This commit adds badges to the forum list that indicate unread posts.
It does so by extending the compound view `TextAvatarView` and provides convienient setters that take care of the required UI changes. The new badge can also be used to indicate a problem with the forum. Closes #408
This commit is contained in:
21
briar-android/res/drawable/bubble_problem.xml
Normal file
21
briar-android/res/drawable/bubble_problem.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
|
||||
<corners
|
||||
android:radius="@dimen/unread_bubble_size"/>
|
||||
|
||||
<padding
|
||||
android:left="@dimen/unread_bubble_padding_horizontal"
|
||||
android:right="@dimen/unread_bubble_padding_horizontal"/>
|
||||
|
||||
<solid
|
||||
android:color="@color/briar_gold"/>
|
||||
|
||||
<stroke
|
||||
android:color="@color/briar_primary"
|
||||
android:width="@dimen/avatar_border_width"/>
|
||||
|
||||
</shape>
|
||||
|
||||
Reference in New Issue
Block a user