diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-07-03 02:27:24 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-07-03 02:27:24 +0000 |
commit | 4f8b313b3c42084e66fcdc0e3aaaf870c97b5688 (patch) | |
tree | 399fb5287fb6e6f647167291aba364dad0ccd0ff /app/src/main/res | |
parent | 9a4edde8fb5550b5caa66eeaba4e686a6b1ff442 (diff) | |
download | infinity-for-reddit-4f8b313b3c42084e66fcdc0e3aaaf870c97b5688.tar infinity-for-reddit-4f8b313b3c42084e66fcdc0e3aaaf870c97b5688.tar.gz infinity-for-reddit-4f8b313b3c42084e66fcdc0e3aaaf870c97b5688.tar.bz2 infinity-for-reddit-4f8b313b3c42084e66fcdc0e3aaaf870c97b5688.tar.lz infinity-for-reddit-4f8b313b3c42084e66fcdc0e3aaaf870c97b5688.tar.xz infinity-for-reddit-4f8b313b3c42084e66fcdc0e3aaaf870c97b5688.tar.zst infinity-for-reddit-4f8b313b3c42084e66fcdc0e3aaaf870c97b5688.zip |
Fully collapsing comments is now available (barebone).
Diffstat (limited to '')
4 files changed, 63 insertions, 0 deletions
diff --git a/app/src/main/res/layout/fragment_comment_more_bottom_sheet.xml b/app/src/main/res/layout/fragment_comment_more_bottom_sheet.xml index c1126a2d..5d8c86d0 100644 --- a/app/src/main/res/layout/fragment_comment_more_bottom_sheet.xml +++ b/app/src/main/res/layout/fragment_comment_more_bottom_sheet.xml @@ -121,6 +121,7 @@ android:text="@string/see_removed_comment" android:textColor="?attr/primaryTextColor" android:textSize="?attr/font_default" + android:fontFamily="?attr/font_family" android:visibility="gone" /> </LinearLayout> diff --git a/app/src/main/res/layout/item_comment_fully_collapsed.xml b/app/src/main/res/layout/item_comment_fully_collapsed.xml new file mode 100644 index 00000000..f77b683c --- /dev/null +++ b/app/src/main/res/layout/item_comment_fully_collapsed.xml @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <View + android:id="@+id/vertical_block_item_comment_fully_collapsed" + android:layout_width="0dp" + android:layout_height="match_parent" /> + + <TextView + android:id="@+id/user_name_text_view_item_comment_fully_collapsed" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:paddingTop="8dp" + android:paddingBottom="8dp" + android:paddingStart="16dp" + android:paddingEnd="8dp" + android:textSize="?attr/font_default" + android:fontFamily="?attr/font_family" /> + + <TextView + android:id="@+id/score_text_view_item_comment_fully_collapsed" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:padding="8dp" + android:textSize="?attr/font_default" + android:fontFamily="?attr/font_family" /> + + <TextView + android:id="@+id/more_count_text_view_item_comment_fully_collapsed" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="end" + android:paddingTop="8dp" + android:paddingBottom="8dp" + android:paddingStart="8dp" + android:paddingEnd="16dp" + android:textSize="?attr/font_default" + android:fontFamily="?attr/font_family" /> + + </LinearLayout> + + <View + android:id="@+id/divider_item_load_comment_fully_collapsed" + android:layout_width="match_parent" + android:layout_height="1dp" + android:visibility="gone" /> + +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 8c874679..debafeff 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -352,6 +352,7 @@ <string name="settings_show_top_level_comments_first_title">Show Top-level Comments First</string> <string name="settings_show_comment_divider_title">Show Comment Divider</string> <string name="settings_comment_toolbar_hide_on_click">Click to Show/Hide Comment Toolbar</string> + <string name="settings_fully_collapse_comment_title">Fully Collapse Comment</string> <string name="settings_comment_toolbar_hidden">Comment Toolbar Hidden by Default</string> <string name="settings_show_absolute_number_of_votes_title">Show Absolute Number of Votes</string> <string name="settings_show_elapsed_time">Show Elapsed Time in Posts and Comments</string> diff --git a/app/src/main/res/xml/interface_preference.xml b/app/src/main/res/xml/interface_preference.xml index 900ee84d..84d60853 100644 --- a/app/src/main/res/xml/interface_preference.xml +++ b/app/src/main/res/xml/interface_preference.xml @@ -70,6 +70,11 @@ app:title="@string/settings_comment_toolbar_hide_on_click" /> <SwitchPreference + app:defaultValue="false" + app:key="fully_collapse_comment" + android:title="@string/settings_fully_collapse_comment_title" /> + + <SwitchPreference app:defaultValue="true" app:key="show_absolute_number_of_votes" app:title="@string/settings_show_absolute_number_of_votes_title" /> |