-
-
Notifications
You must be signed in to change notification settings - Fork 410
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bottom sheet fragments cannot swipe down to show items when the…
…y are expanded. Version 1.3.1.
- Loading branch information
1 parent
096f122
commit 6662f9a
Showing
8 changed files
with
578 additions
and
531 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
263 changes: 135 additions & 128 deletions
263
app/src/main/res/layout/fragment_post_comment_sort_type_bottom_sheet.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,144 +1,151 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
<androidx.core.widget.NestedScrollView 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" | ||
android:layout_height="wrap_content" | ||
android:overScrollMode="never" | ||
tools:context=".Fragment.PostCommentSortTypeBottomSheetFragment"> | ||
|
||
<TextView | ||
android:id="@+id/best_type_text_view_post_comment_sort_type_bottom_sheet_fragment" | ||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="@string/sort_best" | ||
android:textColor="@color/primaryTextColor" | ||
android:textSize="?attr/font_default" | ||
android:paddingTop="16dp" | ||
android:paddingBottom="16dp" | ||
android:paddingStart="32dp" | ||
android:paddingEnd="32dp" | ||
android:clickable="true" | ||
android:focusable="true" | ||
android:background="?attr/selectableItemBackground" /> | ||
android:orientation="vertical"> | ||
|
||
<TextView | ||
android:id="@+id/confidence_type_text_view_post_comment_sort_type_bottom_sheet_fragment" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="@string/sort_confidence" | ||
android:textColor="@color/primaryTextColor" | ||
android:textSize="?attr/font_default" | ||
android:paddingTop="16dp" | ||
android:paddingBottom="16dp" | ||
android:paddingStart="32dp" | ||
android:paddingEnd="32dp" | ||
android:clickable="true" | ||
android:focusable="true" | ||
android:background="?attr/selectableItemBackground" /> | ||
<TextView | ||
android:id="@+id/best_type_text_view_post_comment_sort_type_bottom_sheet_fragment" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="?attr/selectableItemBackground" | ||
android:clickable="true" | ||
android:focusable="true" | ||
android:paddingStart="32dp" | ||
android:paddingTop="16dp" | ||
android:paddingEnd="32dp" | ||
android:paddingBottom="16dp" | ||
android:text="@string/sort_best" | ||
android:textColor="@color/primaryTextColor" | ||
android:textSize="?attr/font_default" /> | ||
|
||
<TextView | ||
android:id="@+id/top_type_text_view_post_comment_sort_type_bottom_sheet_fragment" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="@string/sort_top" | ||
android:textColor="@color/primaryTextColor" | ||
android:textSize="?attr/font_default" | ||
android:paddingTop="16dp" | ||
android:paddingBottom="16dp" | ||
android:paddingStart="32dp" | ||
android:paddingEnd="32dp" | ||
android:clickable="true" | ||
android:focusable="true" | ||
android:background="?attr/selectableItemBackground" /> | ||
<TextView | ||
android:id="@+id/confidence_type_text_view_post_comment_sort_type_bottom_sheet_fragment" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="?attr/selectableItemBackground" | ||
android:clickable="true" | ||
android:focusable="true" | ||
android:paddingStart="32dp" | ||
android:paddingTop="16dp" | ||
android:paddingEnd="32dp" | ||
android:paddingBottom="16dp" | ||
android:text="@string/sort_confidence" | ||
android:textColor="@color/primaryTextColor" | ||
android:textSize="?attr/font_default" /> | ||
|
||
<TextView | ||
android:id="@+id/new_type_text_view_post_comment_sort_type_bottom_sheet_fragment" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="@string/sort_new" | ||
android:textColor="@color/primaryTextColor" | ||
android:textSize="?attr/font_default" | ||
android:paddingTop="16dp" | ||
android:paddingBottom="16dp" | ||
android:paddingStart="32dp" | ||
android:paddingEnd="32dp" | ||
android:clickable="true" | ||
android:focusable="true" | ||
android:background="?attr/selectableItemBackground" /> | ||
<TextView | ||
android:id="@+id/top_type_text_view_post_comment_sort_type_bottom_sheet_fragment" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="?attr/selectableItemBackground" | ||
android:clickable="true" | ||
android:focusable="true" | ||
android:paddingStart="32dp" | ||
android:paddingTop="16dp" | ||
android:paddingEnd="32dp" | ||
android:paddingBottom="16dp" | ||
android:text="@string/sort_top" | ||
android:textColor="@color/primaryTextColor" | ||
android:textSize="?attr/font_default" /> | ||
|
||
<TextView | ||
android:id="@+id/controversial_type_text_view_post_comment_sort_type_bottom_sheet_fragment" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="@string/sort_controversial" | ||
android:textColor="@color/primaryTextColor" | ||
android:textSize="?attr/font_default" | ||
android:paddingTop="16dp" | ||
android:paddingBottom="16dp" | ||
android:paddingStart="32dp" | ||
android:paddingEnd="32dp" | ||
android:clickable="true" | ||
android:focusable="true" | ||
android:background="?attr/selectableItemBackground" /> | ||
<TextView | ||
android:id="@+id/new_type_text_view_post_comment_sort_type_bottom_sheet_fragment" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="?attr/selectableItemBackground" | ||
android:clickable="true" | ||
android:focusable="true" | ||
android:paddingStart="32dp" | ||
android:paddingTop="16dp" | ||
android:paddingEnd="32dp" | ||
android:paddingBottom="16dp" | ||
android:text="@string/sort_new" | ||
android:textColor="@color/primaryTextColor" | ||
android:textSize="?attr/font_default" /> | ||
|
||
<TextView | ||
android:id="@+id/old_type_text_view_post_comment_sort_type_bottom_sheet_fragment" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="@string/sort_old" | ||
android:textColor="@color/primaryTextColor" | ||
android:textSize="?attr/font_default" | ||
android:paddingTop="16dp" | ||
android:paddingBottom="16dp" | ||
android:paddingStart="32dp" | ||
android:paddingEnd="32dp" | ||
android:clickable="true" | ||
android:focusable="true" | ||
android:background="?attr/selectableItemBackground" /> | ||
<TextView | ||
android:id="@+id/controversial_type_text_view_post_comment_sort_type_bottom_sheet_fragment" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="?attr/selectableItemBackground" | ||
android:clickable="true" | ||
android:focusable="true" | ||
android:paddingStart="32dp" | ||
android:paddingTop="16dp" | ||
android:paddingEnd="32dp" | ||
android:paddingBottom="16dp" | ||
android:text="@string/sort_controversial" | ||
android:textColor="@color/primaryTextColor" | ||
android:textSize="?attr/font_default" /> | ||
|
||
<TextView | ||
android:id="@+id/random_type_text_view_post_comment_sort_type_bottom_sheet_fragment" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="@string/sort_random" | ||
android:textColor="@color/primaryTextColor" | ||
android:textSize="?attr/font_default" | ||
android:paddingTop="16dp" | ||
android:paddingBottom="16dp" | ||
android:paddingStart="32dp" | ||
android:paddingEnd="32dp" | ||
android:clickable="true" | ||
android:focusable="true" | ||
android:background="?attr/selectableItemBackground" /> | ||
<TextView | ||
android:id="@+id/old_type_text_view_post_comment_sort_type_bottom_sheet_fragment" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="?attr/selectableItemBackground" | ||
android:clickable="true" | ||
android:focusable="true" | ||
android:paddingStart="32dp" | ||
android:paddingTop="16dp" | ||
android:paddingEnd="32dp" | ||
android:paddingBottom="16dp" | ||
android:text="@string/sort_old" | ||
android:textColor="@color/primaryTextColor" | ||
android:textSize="?attr/font_default" /> | ||
|
||
<TextView | ||
android:id="@+id/qa_type_text_view_post_comment_sort_type_bottom_sheet_fragment" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="@string/sort_qa" | ||
android:textColor="@color/primaryTextColor" | ||
android:textSize="?attr/font_default" | ||
android:paddingTop="16dp" | ||
android:paddingBottom="16dp" | ||
android:paddingStart="32dp" | ||
android:paddingEnd="32dp" | ||
android:clickable="true" | ||
android:focusable="true" | ||
android:background="?attr/selectableItemBackground" /> | ||
<TextView | ||
android:id="@+id/random_type_text_view_post_comment_sort_type_bottom_sheet_fragment" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="?attr/selectableItemBackground" | ||
android:clickable="true" | ||
android:focusable="true" | ||
android:paddingStart="32dp" | ||
android:paddingTop="16dp" | ||
android:paddingEnd="32dp" | ||
android:paddingBottom="16dp" | ||
android:text="@string/sort_random" | ||
android:textColor="@color/primaryTextColor" | ||
android:textSize="?attr/font_default" /> | ||
|
||
<TextView | ||
android:id="@+id/live_type_text_view_post_comment_sort_type_bottom_sheet_fragment" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="@string/sort_live" | ||
android:textColor="@color/primaryTextColor" | ||
android:textSize="?attr/font_default" | ||
android:paddingTop="16dp" | ||
android:paddingBottom="16dp" | ||
android:paddingStart="32dp" | ||
android:paddingEnd="32dp" | ||
android:clickable="true" | ||
android:focusable="true" | ||
android:background="?attr/selectableItemBackground" /> | ||
<TextView | ||
android:id="@+id/qa_type_text_view_post_comment_sort_type_bottom_sheet_fragment" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="?attr/selectableItemBackground" | ||
android:clickable="true" | ||
android:focusable="true" | ||
android:paddingStart="32dp" | ||
android:paddingTop="16dp" | ||
android:paddingEnd="32dp" | ||
android:paddingBottom="16dp" | ||
android:text="@string/sort_qa" | ||
android:textColor="@color/primaryTextColor" | ||
android:textSize="?attr/font_default" /> | ||
|
||
<TextView | ||
android:id="@+id/live_type_text_view_post_comment_sort_type_bottom_sheet_fragment" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="?attr/selectableItemBackground" | ||
android:clickable="true" | ||
android:focusable="true" | ||
android:paddingStart="32dp" | ||
android:paddingTop="16dp" | ||
android:paddingEnd="32dp" | ||
android:paddingBottom="16dp" | ||
android:text="@string/sort_live" | ||
android:textColor="@color/primaryTextColor" | ||
android:textSize="?attr/font_default" /> | ||
|
||
</LinearLayout> | ||
|
||
</LinearLayout> | ||
</androidx.core.widget.NestedScrollView> |
Oops, something went wrong.