aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2023-06-22 13:02:08 +0000
committerDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2023-06-22 13:02:08 +0000
commit1686e2d9c37de52c59ab2e6591143a48675f3430 (patch)
treefebd353d9ac045faf30ededa975205f4d13147a1 /app/src/main/res/layout
parentd38651472510b4d46994f87527c22d05f47acc9e (diff)
downloadinfinity-for-reddit-1686e2d9c37de52c59ab2e6591143a48675f3430.tar
infinity-for-reddit-1686e2d9c37de52c59ab2e6591143a48675f3430.tar.gz
infinity-for-reddit-1686e2d9c37de52c59ab2e6591143a48675f3430.tar.bz2
infinity-for-reddit-1686e2d9c37de52c59ab2e6591143a48675f3430.tar.lz
infinity-for-reddit-1686e2d9c37de52c59ab2e6591143a48675f3430.tar.xz
infinity-for-reddit-1686e2d9c37de52c59ab2e6591143a48675f3430.tar.zst
infinity-for-reddit-1686e2d9c37de52c59ab2e6591143a48675f3430.zip
Fix RedditAPIInfoBottomSheetFragment not scrollable.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/fragment_reddit_api_info_bottom_sheet.xml102
1 files changed, 54 insertions, 48 deletions
diff --git a/app/src/main/res/layout/fragment_reddit_api_info_bottom_sheet.xml b/app/src/main/res/layout/fragment_reddit_api_info_bottom_sheet.xml
index 3ca7f923..d5f9f28b 100644
--- a/app/src/main/res/layout/fragment_reddit_api_info_bottom_sheet.xml
+++ b/app/src/main/res/layout/fragment_reddit_api_info_bottom_sheet.xml
@@ -1,68 +1,74 @@
<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:orientation="vertical"
tools:context=".bottomsheetfragments.RedditAPIInfoBottomSheetFragment">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:paddingTop="16dp"
- android:paddingStart="16dp"
- android:paddingEnd="16dp"
- android:text="@string/reddit_api_info_title"
- android:fontFamily="?attr/font_family"
- android:textSize="?attr/font_20"
- android:textColor="?attr/primaryTextColor"
- android:textStyle="bold" />
-
- <TextView
- android:id="@+id/message_text_view_reddit_api_info_bottom_sheet_fragment"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:padding="16dp"
- android:text="@string/reddit_api_info"
- android:fontFamily="?attr/font_family"
- android:textSize="?attr/font_16"
- android:textColor="?attr/primaryTextColor" />
-
<LinearLayout
- android:id="@+id/linear_layout_check_box_wrapper_reddit_api_info_bottom_sheet_fragment"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_marginStart="10dp"
- android:layout_marginEnd="16dp"
- android:layout_marginBottom="16dp">
+ android:orientation="vertical">
- <com.google.android.material.checkbox.MaterialCheckBox
- android:id="@+id/do_not_show_this_again_check_box"
- android:layout_width="wrap_content"
+ <TextView
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_gravity="center_vertical" />
+ android:paddingTop="16dp"
+ android:paddingStart="16dp"
+ android:paddingEnd="16dp"
+ android:text="@string/reddit_api_info_title"
+ android:fontFamily="?attr/font_family"
+ android:textSize="?attr/font_20"
+ android:textColor="?attr/primaryTextColor"
+ android:textStyle="bold" />
<TextView
- android:id="@+id/do_not_show_this_again_text_view"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:text="@string/do_not_show_this_again"
- android:gravity="center_vertical"
+ android:id="@+id/message_text_view_reddit_api_info_bottom_sheet_fragment"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:padding="16dp"
+ android:text="@string/reddit_api_info"
android:fontFamily="?attr/font_family"
- android:textSize="?attr/font_default"
+ android:textSize="?attr/font_16"
android:textColor="?attr/primaryTextColor" />
- <com.google.android.material.button.MaterialButton
- android:id="@+id/continue_button_reddit_api_info_bottom_sheet_fragment"
- android:layout_width="wrap_content"
+ <LinearLayout
+ android:id="@+id/linear_layout_check_box_wrapper_reddit_api_info_bottom_sheet_fragment"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_gravity="end"
- android:layout_marginStart="8dp"
- android:layout_marginEnd="8dp"
- android:backgroundTint="@color/colorPrimary"
- android:text="@string/i_understand" />
+ android:layout_marginStart="10dp"
+ android:layout_marginEnd="16dp"
+ android:layout_marginBottom="16dp">
+
+ <com.google.android.material.checkbox.MaterialCheckBox
+ android:id="@+id/do_not_show_this_again_check_box"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical" />
+
+ <TextView
+ android:id="@+id/do_not_show_this_again_text_view"
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_weight="1"
+ android:text="@string/do_not_show_this_again"
+ android:gravity="center_vertical"
+ android:fontFamily="?attr/font_family"
+ android:textSize="?attr/font_default"
+ android:textColor="?attr/primaryTextColor" />
+
+ <com.google.android.material.button.MaterialButton
+ android:id="@+id/continue_button_reddit_api_info_bottom_sheet_fragment"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="end"
+ android:layout_marginStart="8dp"
+ android:layout_marginEnd="8dp"
+ android:backgroundTint="@color/colorPrimary"
+ android:text="@string/i_understand" />
+
+ </LinearLayout>
</LinearLayout>
-</LinearLayout> \ No newline at end of file
+</ScrollView> \ No newline at end of file