From 825bebb6966cd08311144df6a59f11dabf50dcb9 Mon Sep 17 00:00:00 2001 From: Ezerous Date: Thu, 3 Sep 2020 11:38:35 +0300 Subject: [PATCH] WebView enhancements (no horizontal scrolling, no autoscroll to top on link/image click) --- app/src/main/assets/style.css | 1 + app/src/main/res/layout/activity_topic.xml | 1 + app/src/main/res/layout/fragment_profile_latest_posts.xml | 3 ++- app/src/main/res/layout/fragment_shoutbox.xml | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/assets/style.css b/app/src/main/assets/style.css index 501e1320..27c7f39f 100644 --- a/app/src/main/assets/style.css +++ b/app/src/main/assets/style.css @@ -107,6 +107,7 @@ body { background: #3C3F41; margin: 0; padding: 0; + word-wrap: break-word; } diff --git a/app/src/main/res/layout/activity_topic.xml b/app/src/main/res/layout/activity_topic.xml index 24793374..e8752417 100644 --- a/app/src/main/res/layout/activity_topic.xml +++ b/app/src/main/res/layout/activity_topic.xml @@ -48,6 +48,7 @@ android:paddingTop="4dp" android:paddingBottom="4dp" android:scrollbars="none" + android:descendantFocusability="blocksDescendants" app:layout_behavior="@string/appbar_scrolling_view_behavior" tools:context="gr.thmmy.mthmmy.activities.topic.TopicActivity" /> diff --git a/app/src/main/res/layout/fragment_profile_latest_posts.xml b/app/src/main/res/layout/fragment_profile_latest_posts.xml index 6827530d..f5e3ba3b 100644 --- a/app/src/main/res/layout/fragment_profile_latest_posts.xml +++ b/app/src/main/res/layout/fragment_profile_latest_posts.xml @@ -11,6 +11,7 @@ android:layout_height="match_parent" android:padding="4dp" android:clipToPadding = "false" - android:scrollbars="none"> + android:scrollbars="none" + android:descendantFocusability="blocksDescendants"> \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_shoutbox.xml b/app/src/main/res/layout/fragment_shoutbox.xml index a3982068..70439ee5 100644 --- a/app/src/main/res/layout/fragment_shoutbox.xml +++ b/app/src/main/res/layout/fragment_shoutbox.xml @@ -22,6 +22,7 @@ android:layout_height="0dp" android:layout_weight="1" android:paddingBottom="8dp" + android:descendantFocusability="blocksDescendants" tools:listitem="@layout/fragment_shoutbox_shout_row" />