Adjust dimensions for next up item on tablets
This commit is contained in:
parent
80ff96a5b4
commit
5cde430986
3 changed files with 17 additions and 7 deletions
|
@ -321,29 +321,37 @@
|
||||||
android:textAppearance="@style/TextAppearance.MaterialComponents.Subtitle1"
|
android:textAppearance="@style/TextAppearance.MaterialComponents.Subtitle1"
|
||||||
android:textSize="18sp" />
|
android:textSize="18sp" />
|
||||||
|
|
||||||
<LinearLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:id="@+id/next_up"
|
android:id="@+id/next_up"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="@dimen/nextup_media_width"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginHorizontal="24dp"
|
android:layout_marginHorizontal="24dp"
|
||||||
android:foreground="?attr/selectableItemBackground"
|
android:foreground="?attr/selectableItemBackground"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<com.google.android.material.imageview.ShapeableImageView
|
<com.google.android.material.imageview.ShapeableImageView
|
||||||
android:layout_width="match_parent"
|
android:id="@+id/next_up_image"
|
||||||
android:layout_height="wrap_content"
|
android:layout_width="0dp"
|
||||||
android:layout_marginBottom="4dp"
|
android:layout_height="0dp"
|
||||||
android:adjustViewBounds="true"
|
android:adjustViewBounds="true"
|
||||||
app:itemPrimaryImage="@{viewModel.nextUp}"
|
app:itemPrimaryImage="@{viewModel.nextUp}"
|
||||||
|
app:layout_constraintDimensionRatio="H,16:9"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:shapeAppearance="@style/roundedImageView" />
|
app:shapeAppearance="@style/roundedImageView" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="4dp"
|
||||||
android:text="@{String.format(@string/episode_name_extended, viewModel.nextUp.parentIndexNumber, viewModel.nextUp.indexNumber, viewModel.nextUp.name)}"
|
android:text="@{String.format(@string/episode_name_extended, viewModel.nextUp.parentIndexNumber, viewModel.nextUp.indexNumber, viewModel.nextUp.name)}"
|
||||||
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/next_up_image"
|
||||||
tools:text="The Girl Flautist" />
|
tools:text="The Girl Flautist" />
|
||||||
</LinearLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
|
@ -5,4 +5,5 @@
|
||||||
<item name="collection_columns" type="integer">2</item>
|
<item name="collection_columns" type="integer">2</item>
|
||||||
<item name="library_columns" type="integer">4</item>
|
<item name="library_columns" type="integer">4</item>
|
||||||
<item name="recyclerview_animation_duration" type="integer">450</item>
|
<item name="recyclerview_animation_duration" type="integer">450</item>
|
||||||
|
<dimen name="nextup_media_width">350dp</dimen>
|
||||||
</resources>
|
</resources>
|
|
@ -8,4 +8,5 @@
|
||||||
<item name="collection_columns" type="integer">1</item>
|
<item name="collection_columns" type="integer">1</item>
|
||||||
<item name="library_columns" type="integer">2</item>
|
<item name="library_columns" type="integer">2</item>
|
||||||
<item name="recyclerview_animation_duration" type="integer">250</item>
|
<item name="recyclerview_animation_duration" type="integer">250</item>
|
||||||
|
<dimen name="nextup_media_width">@dimen/match_parent</dimen>
|
||||||
</resources>
|
</resources>
|
Loading…
Reference in a new issue