diff --git a/app/src/main/assets/dark.css b/app/src/main/assets/dark.css index d5bb51ed0..71dfd29a8 100755 --- a/app/src/main/assets/dark.css +++ b/app/src/main/assets/dark.css @@ -178,7 +178,7 @@ h2:after { ========================================================================== */ #content { - margin-top: 1em; + margin-top: 100px; min-height: 30em; } diff --git a/app/src/main/assets/main.css b/app/src/main/assets/main.css index 81c0eaff0..86ed934c4 100755 --- a/app/src/main/assets/main.css +++ b/app/src/main/assets/main.css @@ -168,7 +168,7 @@ h2:after { ========================================================================== */ #content { - margin-top: 1em; + margin-top: 100px; min-height: 30em; } diff --git a/app/src/main/assets/solarized.css b/app/src/main/assets/solarized.css index 45422b31d..cf0a533a3 100755 --- a/app/src/main/assets/solarized.css +++ b/app/src/main/assets/solarized.css @@ -185,7 +185,7 @@ h2:after { ========================================================================== */ #content { - margin-top: 1em; + margin-top: 100px; min-height: 30em; } diff --git a/app/src/main/java/fr/gaulupeau/apps/Poche/ui/ReadArticleActivity.java b/app/src/main/java/fr/gaulupeau/apps/Poche/ui/ReadArticleActivity.java index 49fa12aaf..267a0da53 100644 --- a/app/src/main/java/fr/gaulupeau/apps/Poche/ui/ReadArticleActivity.java +++ b/app/src/main/java/fr/gaulupeau/apps/Poche/ui/ReadArticleActivity.java @@ -657,12 +657,9 @@ public boolean onSingleTapConfirmed(MotionEvent e) { float x = e.getX(); int viewWidth = scrollView.getWidth(); - - if(tapToScroll) { int viewHeight = scrollView.getHeight(); float y = e.getY() - scrollView.getScrollY(); - if (y > viewHeight * 0.25 && y < viewHeight * 0.75) { if (x < viewWidth * 0.3) { // left part @@ -673,7 +670,9 @@ public boolean onSingleTapConfirmed(MotionEvent e) { } // TODO: Maybe enable this with option in settings menu? // Toggle fullscreen if touching center of screen - } else if(x > viewWidth * 0.3 && x < viewWidth * 0.7){ + } + + if(x > viewWidth * 0.3 && x < viewWidth * 0.7){ isFullscreen = goFullscreen(!isFullscreen); } diff --git a/app/src/main/res/layout/article.xml b/app/src/main/res/layout/article.xml index 89c9f1b2d..75ae797ff 100644 --- a/app/src/main/res/layout/article.xml +++ b/app/src/main/res/layout/article.xml @@ -19,9 +19,6 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" - android:layout_marginTop="?attr/actionBarSize" - android:paddingTop="?attr/actionBarSize" - tools:ignore="WebViewLayout">