summaryrefslogtreecommitdiff
path: root/org.fox.ttrss/src/main/res/layout/fragment_article.xml
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-10-02 16:11:14 +0300
committerAndrew Dolgov <[email protected]>2020-10-02 16:11:14 +0300
commitf44e5a67123d47c1637fcc8f7b25537c4fabe8ea (patch)
treea00392a954428bae2aa9832b08f3d919b28099b9 /org.fox.ttrss/src/main/res/layout/fragment_article.xml
parent39d707061fc481ca8163444f224339fe6b2314b1 (diff)
fix headlines fab
Diffstat (limited to 'org.fox.ttrss/src/main/res/layout/fragment_article.xml')
-rwxr-xr-xorg.fox.ttrss/src/main/res/layout/fragment_article.xml45
1 files changed, 20 insertions, 25 deletions
diff --git a/org.fox.ttrss/src/main/res/layout/fragment_article.xml b/org.fox.ttrss/src/main/res/layout/fragment_article.xml
index e9fea26c..d14f6d88 100755
--- a/org.fox.ttrss/src/main/res/layout/fragment_article.xml
+++ b/org.fox.ttrss/src/main/res/layout/fragment_article.xml
@@ -5,7 +5,6 @@
android:layout_height="match_parent"
android:background="?articleBackground">
-
<FrameLayout
android:id="@+id/article_fullscreen_video"
android:visibility="invisible"
@@ -14,14 +13,24 @@
<com.otaliastudios.nestedscrollcoordinatorlayout.NestedScrollCoordinatorLayout
android:layout_width="match_parent"
- android:layout_height="match_parent">
+ android:layout_height="wrap_content">
+
+ <com.google.android.material.floatingactionbutton.FloatingActionButton
+ android:id="@+id/article_fab"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="end|bottom"
+ android:layout_marginBottom="72dp"
+ android:layout_marginRight="16dp"
+ android:src="@drawable/ic_action_web_site"
+ />
<com.google.android.material.appbar.AppBarLayout
android:background="?articleHeader"
android:elevation="0dp"
app:elevation="0dp"
android:layout_width="match_parent"
- android:layout_height="wrap_content">
+ android:layout_height="match_parent">
<LinearLayout
app:layout_scrollFlags="scroll|enterAlways"
@@ -43,7 +52,6 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
- android:text="My simple but hilariously and excessively long headline"
android:textColor="?articleHeaderTextColor"
android:textSize="18sp" />
@@ -114,27 +122,26 @@
</LinearLayout>
+ <View
+ android:layout_gravity="top|center_horizontal"
+ android:layout_width="match_parent"
+ android:layout_height="1dp"
+ android:background="?articleHeaderSeparator"/>
+
</com.google.android.material.appbar.AppBarLayout>
<androidx.core.widget.NestedScrollView
android:id="@+id/article_scrollview"
android:scrollbars="vertical|horizontal"
- app:layout_behavior="@string/appbar_scrolling_view_behavior"
+ app:layout_behavior=".util.FabAwareScrollingViewBehavior"
android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:fillViewport="false" >
+ android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
- <View
- android:layout_gravity="top|center_horizontal"
- android:layout_width="match_parent"
- android:layout_height="1dp"
- android:background="?articleHeaderSeparator"/>
-
<TextView
android:id="@+id/note"
android:layout_width="match_parent"
@@ -143,7 +150,6 @@
android:background="?articleNoteBackground"
android:textColor="?articleNoteTextColor"
android:textSize="12sp"
- android:text="[Article note]"
android:paddingLeft="16dp"
android:paddingTop="8dp"
android:paddingRight="16dp"
@@ -161,17 +167,6 @@
</com.otaliastudios.nestedscrollcoordinatorlayout.NestedScrollCoordinatorLayout>
- <com.shamanland.fab.FloatingActionButton
- android:id="@+id/article_fab"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="bottom|right"
- android:layout_marginRight="16dp"
- android:layout_marginBottom="20dp"
- app:floatingActionButtonColor="?colorAccent"
- android:src="@drawable/ic_action_web_site"
- />
-
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"