style: Centre align chips
This commit is contained in:
parent
a101cac503
commit
18b4f858d9
1 changed files with 27 additions and 11 deletions
|
@ -91,19 +91,23 @@
|
||||||
|
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
||||||
<HorizontalScrollView
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:layout_width="wrap_content"
|
android:id="@+id/horizontalScrollView20"
|
||||||
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:clipToPadding="false"
|
android:clipToPadding="false"
|
||||||
android:paddingStart="32dp"
|
|
||||||
android:paddingEnd="32dp"
|
|
||||||
android:scrollbarSize="0dp">
|
android:scrollbarSize="0dp">
|
||||||
|
|
||||||
<LinearLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:id="@+id/animeSeasonsCont"
|
android:id="@+id/animeSeasonsCont"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal">
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintHorizontal_bias="0.5"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:layout_constraintVertical_bias="0.5">
|
||||||
|
|
||||||
<com.google.android.material.chip.Chip
|
<com.google.android.material.chip.Chip
|
||||||
android:id="@+id/animeThisSeason"
|
android:id="@+id/animeThisSeason"
|
||||||
|
@ -111,8 +115,11 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginEnd="8dp"
|
android:layout_marginEnd="8dp"
|
||||||
android:text="@string/this_season"
|
android:text="@string/this_season"
|
||||||
|
android:textAppearance="@style/Suffix"
|
||||||
app:chipStrokeColor="?attr/colorPrimaryContainer"
|
app:chipStrokeColor="?attr/colorPrimaryContainer"
|
||||||
android:textAppearance="@style/Suffix" />
|
app:layout_constraintBaseline_toBaselineOf="@+id/animeNextSeason"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/animeNextSeason"
|
||||||
|
app:layout_constraintStart_toStartOf="parent" />
|
||||||
|
|
||||||
<com.google.android.material.chip.Chip
|
<com.google.android.material.chip.Chip
|
||||||
android:id="@+id/animeNextSeason"
|
android:id="@+id/animeNextSeason"
|
||||||
|
@ -120,20 +127,29 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginEnd="8dp"
|
android:layout_marginEnd="8dp"
|
||||||
android:text="@string/next_season"
|
android:text="@string/next_season"
|
||||||
|
android:textAppearance="@style/Suffix"
|
||||||
app:chipStrokeColor="?attr/colorPrimaryContainer"
|
app:chipStrokeColor="?attr/colorPrimaryContainer"
|
||||||
android:textAppearance="@style/Suffix" />
|
app:layout_constraintBaseline_toBaselineOf="@+id/animePreviousSeason"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/animePreviousSeason"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/animeThisSeason" />
|
||||||
|
|
||||||
<com.google.android.material.chip.Chip
|
<com.google.android.material.chip.Chip
|
||||||
android:id="@+id/animePreviousSeason"
|
android:id="@+id/animePreviousSeason"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="8dp"
|
||||||
android:text="@string/previous_season"
|
android:text="@string/previous_season"
|
||||||
|
android:textAppearance="@style/Suffix"
|
||||||
app:chipStrokeColor="?attr/colorPrimaryContainer"
|
app:chipStrokeColor="?attr/colorPrimaryContainer"
|
||||||
android:textAppearance="@style/Suffix" />
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/animeNextSeason"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:layout_constraintVertical_bias="0.5" />
|
||||||
|
|
||||||
|
|
||||||
</LinearLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
</HorizontalScrollView>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue