diff options
Diffstat (limited to 'app/src/main/res/layout/view_badged_icon.xml')
-rw-r--r-- | app/src/main/res/layout/view_badged_icon.xml | 54 |
1 files changed, 51 insertions, 3 deletions
diff --git a/app/src/main/res/layout/view_badged_icon.xml b/app/src/main/res/layout/view_badged_icon.xml index d8fb3247..cc6b16cc 100644 --- a/app/src/main/res/layout/view_badged_icon.xml +++ b/app/src/main/res/layout/view_badged_icon.xml @@ -1,6 +1,54 @@ <?xml version="1.0" encoding="utf-8"?> -<android.support.constraint.ConstraintLayout - xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" - android:layout_height="match_parent"> +<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="50dp"> + + <android.support.constraint.Guideline + android:id="@+id/g_v_c" + android:layout_width="1dp" + android:layout_height="wrap_content" + android:orientation="vertical" + app:layout_constraintGuide_percent="0.5" + tools:layout_editor_absoluteX="192dp" + tools:layout_editor_absoluteY="0dp" /> + + <android.support.constraint.Guideline + android:id="@+id/g_h_c" + android:layout_width="wrap_content" + android:layout_height="1dp" + android:orientation="horizontal" + app:layout_constraintGuide_percent="0.5" + tools:layout_editor_absoluteX="0dp" + tools:layout_editor_absoluteY="256dp" /> + + <ImageView + android:id="@+id/badge_image" + android:layout_width="20dp" + android:layout_height="20dp" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintHorizontal_bias="0.5" + app:layout_constraintLeft_toLeftOf="parent" + app:layout_constraintRight_toRightOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintVertical_bias="0.5" /> + + <TextView + android:id="@+id/badge_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="center" + android:paddingEnd="5dp" + android:paddingStart="5dp" + android:textSize="12sp" + android:visibility="gone" + app:layout_constraintBottom_toTopOf="@+id/g_h_c" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toEndOf="@id/g_v_c" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintVertical_bias="1" + tools:layout_editor_absoluteX="8dp" /> </android.support.constraint.ConstraintLayout>
\ No newline at end of file |