Create checkboxes dropdown component

This commit is contained in:
elena 2022-12-13 15:20:00 +00:00
parent 780a215a6b
commit 51698947aa
4 changed files with 196 additions and 0 deletions

View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<CheckBox
android:id="@+id/checkbox_in_dropdown"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:buttonTint="@color/colorSecondary"/>
</androidx.appcompat.widget.LinearLayoutCompat>

View file

@ -19,4 +19,8 @@
<attr name="dot_color" format="color" />
<attr name="dot_color_selected" format="color" />
</declare-styleable>
<declare-styleable name="DropdownCheckBoxes">
<attr name="allow_filtering" format="boolean" />
</declare-styleable>
</resources>

View file

@ -500,4 +500,9 @@
<item quantity="one">%d year ago</item>
<item quantity="other">%d years ago</item>
</plurals>
<plurals name="dropdown_checkboxes_default_count">
<item quantity="one">%d item selected</item>
<item quantity="other">%d items selected</item>
</plurals>
</resources>