aboutsummaryrefslogtreecommitdiff
path: root/org.fox.ttrss/src/main/res/layout
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2025-05-10 20:47:24 +0300
committerAndrew Dolgov <fox@fakecake.org>2025-05-10 20:47:24 +0300
commitbc5fd208926c779a1ae912c10b3f446cc2629bea (patch)
tree1ab9590f46c817e32b251f8ab3b60763a6951bc8 /org.fox.ttrss/src/main/res/layout
parent6c7fec94127e62975e2a5213a3af4010089a9702 (diff)
wip bottom appbar
Diffstat (limited to 'org.fox.ttrss/src/main/res/layout')
-rwxr-xr-xorg.fox.ttrss/src/main/res/layout/fragment_article.xml6
-rwxr-xr-xorg.fox.ttrss/src/main/res/layout/fragment_article_pager.xml2
-rw-r--r--org.fox.ttrss/src/main/res/layout/layout_detail_phone.xml30
3 files changed, 23 insertions, 15 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 e75980b0..5696e889 100755
--- a/org.fox.ttrss/src/main/res/layout/fragment_article.xml
+++ b/org.fox.ttrss/src/main/res/layout/fragment_article.xml
@@ -14,12 +14,12 @@
<com.otaliastudios.nestedscrollcoordinatorlayout.NestedScrollCoordinatorLayout
android:layout_width="match_parent"
- android:layout_height="wrap_content">
+ android:layout_height="match_parent">
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:background="?colorSurfaceContainer"
- android:layout_height="match_parent">
+ android:layout_height="wrap_content">
<com.google.android.material.card.MaterialCardView
app:layout_scrollFlags="scroll|enterAlways"
@@ -150,7 +150,7 @@
android:id="@+id/article_content"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
android:layout_width="match_parent"
- android:layout_height="wrap_content" />
+ android:layout_height="match_parent" />
</com.otaliastudios.nestedscrollcoordinatorlayout.NestedScrollCoordinatorLayout>
diff --git a/org.fox.ttrss/src/main/res/layout/fragment_article_pager.xml b/org.fox.ttrss/src/main/res/layout/fragment_article_pager.xml
index 1a687b1d..2f962418 100755
--- a/org.fox.ttrss/src/main/res/layout/fragment_article_pager.xml
+++ b/org.fox.ttrss/src/main/res/layout/fragment_article_pager.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<androidx.viewpager.widget.ViewPager
+<androidx.viewpager2.widget.ViewPager2
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/article_pager"
android:layout_width="match_parent"
diff --git a/org.fox.ttrss/src/main/res/layout/layout_detail_phone.xml b/org.fox.ttrss/src/main/res/layout/layout_detail_phone.xml
index 429b27c0..420b6f3a 100644
--- a/org.fox.ttrss/src/main/res/layout/layout_detail_phone.xml
+++ b/org.fox.ttrss/src/main/res/layout/layout_detail_phone.xml
@@ -2,16 +2,7 @@
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
- android:layout_height="wrap_content">
-
- <com.google.android.material.floatingactionbutton.FloatingActionButton
- android:id="@+id/detail_fab"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="end|bottom"
- android:visibility="gone"
- android:src="@drawable/baseline_open_in_browser_24"
- android:layout_margin="16dp" />
+ android:layout_height="match_parent">
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
@@ -25,7 +16,7 @@
android:id="@+id/article_fragment"
app:layout_behavior=".util.DetailActivityScrollingViewBehavior"
android:layout_width="match_parent"
- android:layout_height="wrap_content">
+ android:layout_height="match_parent">
</FrameLayout>
<FrameLayout
@@ -35,5 +26,22 @@
android:layout_width="0dp">
</FrameLayout>
+ <com.google.android.material.bottomappbar.BottomAppBar
+ android:id="@+id/detail_bottom_appbar"
+ app:backgroundTint="?colorSurfaceContainerHigh"
+ android:layout_width="match_parent"
+ android:layout_height="64dp"
+ android:layout_gravity="bottom"
+ app:menu="@menu/bottombar_detail" />
+
+ <com.google.android.material.floatingactionbutton.FloatingActionButton
+ android:id="@+id/detail_fab"
+ android:layout_gravity="end|bottom"
+ android:layout_marginEnd="16dp"
+ android:layout_marginBottom="38dp"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ app:srcCompat="@drawable/baseline_open_in_browser_24" />
+
</androidx.coordinatorlayout.widget.CoordinatorLayout>