Add bottomsheet for chips

This commit is contained in:
Alexander Bakker 2020-12-22 13:29:38 +01:00 committed by Michael Schättgen
parent c6cb390990
commit a6bf3b7c87
16 changed files with 255 additions and 66 deletions

View file

@ -38,6 +38,13 @@
android:layout_marginStart="5dp" />
</LinearLayout>
<com.google.android.material.chip.ChipGroup
android:id="@+id/groupChipGroup"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</com.google.android.material.chip.ChipGroup>
<fragment
android:name="com.beemdevelopment.aegis.ui.views.EntryListView"
android:id="@+id/key_profiles"

View file

@ -4,8 +4,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="?attr/background">
android:orientation="vertical">
<LinearLayout
android:id="@+id/fab_scan"
android:layout_width="match_parent"

View file

@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="12dp"
android:orientation="vertical">
<View
android:layout_width="16dp"
android:layout_height="2dp"
android:layout_gravity="center"
android:background="@drawable/drag_handle" />
<TextView
android:paddingTop="8dp"
android:paddingBottom="16dp"
android:textSize="17sp"
android:gravity="center"
android:id="@+id/textView3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="?attr/primaryText"
android:text="Groups" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/divider2" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:minHeight="150dp"
android:orientation="vertical">
<com.google.android.material.chip.ChipGroup
android:id="@+id/groupChipGroup"
android:paddingLeft="8dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</com.google.android.material.chip.ChipGroup>
</LinearLayout>
<Button
android:id="@+id/btnClear"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
style="?android:attr/borderlessButtonStyle"
android:textColor="@color/colorSecondary"
android:paddingEnd="16dp"
android:text="Clear" />
</LinearLayout>

View file

@ -15,6 +15,24 @@
android:visibility="gone"
android:max="5000"/>
<com.google.android.material.chip.Chip
android:id="@+id/chip_group"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/groups"
android:layout_gravity="end"
android:layout_marginEnd="8dp"
android:textAppearance="@style/AppTheme.ActionChip"
android:textColor="?attr/primaryText"
app:chipBackgroundColor="?attr/cardBackground"
app:chipEndPadding="6dp"
app:chipIcon="@drawable/ic_baseline_filter_list_24dp"
app:chipIconSize="18dp"
app:chipIconTint="?attr/primaryText"
app:chipStrokeColor="@color/hint_text_dark"
app:chipStrokeWidth="1dp"
app:iconStartPadding="6dp" />
<androidx.recyclerview.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="0dp"