mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-25 23:34:16 +01:00
Align ChipGroup to center when space exists
This commit is contained in:
parent
750dfb8f00
commit
bcd38460be
@ -1,29 +1,40 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content">
|
||||||
android:scrollbars="none">
|
<HorizontalScrollView
|
||||||
|
|
||||||
<com.google.android.material.chip.ChipGroup
|
|
||||||
android:id="@+id/chip_group"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingStart="16dp"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
android:paddingTop="16dp"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
android:paddingEnd="16dp"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
android:paddingBottom="4dp"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:checkedChip="@id/all_chip"
|
android:scrollbars="none"
|
||||||
app:chipSpacingHorizontal="16dp"
|
tools:ignore="MissingConstraints">
|
||||||
app:selectionRequired="true"
|
|
||||||
app:singleLine="true"
|
|
||||||
app:singleSelection="true">
|
|
||||||
|
|
||||||
<com.google.android.material.chip.Chip
|
<com.google.android.material.chip.ChipGroup
|
||||||
android:id="@+id/all_chip"
|
android:id="@+id/chip_group"
|
||||||
style="?attr/chipChoiceStyle"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/all" />
|
android:paddingStart="16dp"
|
||||||
</com.google.android.material.chip.ChipGroup>
|
android:paddingTop="16dp"
|
||||||
</HorizontalScrollView>
|
android:paddingEnd="16dp"
|
||||||
|
android:paddingBottom="4dp"
|
||||||
|
app:checkedChip="@id/all_chip"
|
||||||
|
app:chipSpacingHorizontal="16dp"
|
||||||
|
app:selectionRequired="true"
|
||||||
|
app:singleLine="true"
|
||||||
|
app:singleSelection="true">
|
||||||
|
|
||||||
|
<com.google.android.material.chip.Chip
|
||||||
|
android:id="@+id/all_chip"
|
||||||
|
style="?attr/chipChoiceStyle"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/all" />
|
||||||
|
</com.google.android.material.chip.ChipGroup>
|
||||||
|
</HorizontalScrollView>
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
Loading…
Reference in New Issue
Block a user