diff --git a/AnkiDroid/src/main/res/layout/template_previewer.xml b/AnkiDroid/src/main/res/layout/template_previewer.xml
index 2d7ca98251b2..35b3b0c4faaf 100644
--- a/AnkiDroid/src/main/res/layout/template_previewer.xml
+++ b/AnkiDroid/src/main/res/layout/template_previewer.xml
@@ -1,18 +1,20 @@
-
+ android:layout_height="match_parent"
+ android:orientation="vertical">
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/AnkiDroid/src/main/res/layout/template_previewer_container.xml b/AnkiDroid/src/main/res/layout/template_previewer_container.xml
index d05c79c51059..c52d81e8684a 100644
--- a/AnkiDroid/src/main/res/layout/template_previewer_container.xml
+++ b/AnkiDroid/src/main/res/layout/template_previewer_container.xml
@@ -9,9 +9,10 @@
android:background="?attr/alternativeBackgroundColor"
tools:context=".previewer.TemplatePreviewerPage">
-
+ android:layout_height="match_parent"
+ android:orientation="vertical">
-
+ app:layout_constraintBottom_toBottomOf="parent"
+ android:layout_weight="1"/>
+
\ No newline at end of file