Skip to content
This repository was archived by the owner on Aug 22, 2024. It is now read-only.

Commit db67c8b

Browse files
committed
[MINOR] Added fill viewport property to take full height.
On large tablet you could still see empty space at the bottom.
1 parent 68db094 commit db67c8b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

app/src/main/res/layout/demo_movie_details.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@
1919
xmlns:app="http://schemas.android.com/apk/res-auto"
2020
xmlns:tools="http://schemas.android.com/tools"
2121
android:layout_width="match_parent"
22-
android:layout_height="match_parent">
22+
android:layout_height="match_parent"
23+
android:fillViewport="true">
2324

2425
<!--
25-
NOTE: This is a complete demo of a video details view using `ConstraintLayout` and flat view hierarchy.
26+
NOTE: This is a complete demo of a video details view
27+
using `ConstraintLayout` and flat view hierarchy.
2628
-->
2729
<androidx.constraintlayout.widget.ConstraintLayout
2830
android:layout_width="match_parent"
@@ -351,7 +353,7 @@
351353
<!-- Empty view to take extra space at the end for scrolling -->
352354
<View
353355
android:layout_width="0dp"
354-
android:layout_height="100dp"
356+
android:layout_height="24dp"
355357
android:visibility="visible"
356358
app:layout_constraintEnd_toEndOf="parent"
357359
app:layout_constraintStart_toStartOf="parent"

0 commit comments

Comments
 (0)