aboutsummaryrefslogtreecommitdiff
path: root/org.fox.ttrss/src/main/res/layout
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2025-05-07 18:59:22 +0300
committerAndrew Dolgov <fox@fakecake.org>2025-05-07 18:59:22 +0300
commita354d2a348099be7e3cacc0441dd5c19944cd7a6 (patch)
treef52c5c84ffd6f03063e9fcd781c16ef734c0dcfc /org.fox.ttrss/src/main/res/layout
parent328df3c29bba93c2198f9905c23ea21f149b3291 (diff)
add m3 edge-to-edge
Diffstat (limited to 'org.fox.ttrss/src/main/res/layout')
-rw-r--r--org.fox.ttrss/src/main/res/layout/activity_detail_phone.xml1
-rwxr-xr-xorg.fox.ttrss/src/main/res/layout/activity_master.xml2
-rw-r--r--org.fox.ttrss/src/main/res/layout/activity_master_phone.xml61
-rwxr-xr-xorg.fox.ttrss/src/main/res/layout/drawer_header.xml2
-rwxr-xr-xorg.fox.ttrss/src/main/res/layout/fragment_article.xml2
-rw-r--r--org.fox.ttrss/src/main/res/layout/master_drawer_layout.xml54
-rwxr-xr-xorg.fox.ttrss/src/main/res/layout/toolbar.xml2
7 files changed, 66 insertions, 58 deletions
diff --git a/org.fox.ttrss/src/main/res/layout/activity_detail_phone.xml b/org.fox.ttrss/src/main/res/layout/activity_detail_phone.xml
index 6d2f94ea..56500d38 100644
--- a/org.fox.ttrss/src/main/res/layout/activity_detail_phone.xml
+++ b/org.fox.ttrss/src/main/res/layout/activity_detail_phone.xml
@@ -1,6 +1,7 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/headlines"
android:animateLayoutChanges="true"
+ android:fitsSystemWindows="true"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
diff --git a/org.fox.ttrss/src/main/res/layout/activity_master.xml b/org.fox.ttrss/src/main/res/layout/activity_master.xml
index 9bb9bff5..9bb837cb 100755
--- a/org.fox.ttrss/src/main/res/layout/activity_master.xml
+++ b/org.fox.ttrss/src/main/res/layout/activity_master.xml
@@ -4,5 +4,5 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
- <include layout="@layout/activity_master_phone" />
+ <include layout="@layout/master_drawer_layout" />
</FrameLayout> \ No newline at end of file
diff --git a/org.fox.ttrss/src/main/res/layout/activity_master_phone.xml b/org.fox.ttrss/src/main/res/layout/activity_master_phone.xml
index f1c5e9d3..9bb837cb 100644
--- a/org.fox.ttrss/src/main/res/layout/activity_master_phone.xml
+++ b/org.fox.ttrss/src/main/res/layout/activity_master_phone.xml
@@ -1,53 +1,8 @@
- <androidx.drawerlayout.widget.DrawerLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/headlines_drawer"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent">
-
- <androidx.coordinatorlayout.widget.CoordinatorLayout
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
-
- <com.google.android.material.floatingactionbutton.FloatingActionButton
- android:id="@+id/master_fab"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="end|bottom"
- android:visibility="gone"
- android:src="@drawable/baseline_refresh_24"
- android:layout_margin="16dp" />
-
- <com.google.android.material.appbar.AppBarLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
-
- <include layout="@layout/toolbar" android:id="@+id/toolbar" />
-
- </com.google.android.material.appbar.AppBarLayout>
-
- <FrameLayout
- android:id="@+id/headlines_fragment"
- app:layout_behavior=".util.FabAwareScrollingViewBehavior"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"/>
-
- </androidx.coordinatorlayout.widget.CoordinatorLayout>
-
- <com.google.android.material.navigation.NavigationView
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:id="@+id/navigationView"
- android:layout_width="300dp"
- android:layout_height="match_parent"
- android:layout_gravity="start">
-
- <FrameLayout
- android:id="@+id/feeds_fragment"
- android:layout_width="match_parent"
- android:background="?colorSurfaceContainer"
- android:layout_height="match_parent" >
- </FrameLayout>
-
- </com.google.android.material.navigation.NavigationView>
-
- </androidx.drawerlayout.widget.DrawerLayout>
+<?xml version="1.0" encoding="utf-8"?>
+<FrameLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <include layout="@layout/master_drawer_layout" />
+</FrameLayout> \ No newline at end of file
diff --git a/org.fox.ttrss/src/main/res/layout/drawer_header.xml b/org.fox.ttrss/src/main/res/layout/drawer_header.xml
index f4954259..3540c094 100755
--- a/org.fox.ttrss/src/main/res/layout/drawer_header.xml
+++ b/org.fox.ttrss/src/main/res/layout/drawer_header.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
- android:layout_height="72dp"
+ android:layout_height="96dp"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
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 e8fe04aa..0b1f1f0e 100755
--- a/org.fox.ttrss/src/main/res/layout/fragment_article.xml
+++ b/org.fox.ttrss/src/main/res/layout/fragment_article.xml
@@ -3,6 +3,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/article_fragment"
android:layout_width="fill_parent"
+ android:background="?colorSurfaceContainer"
android:layout_height="match_parent">
<FrameLayout
@@ -16,7 +17,6 @@
android:layout_height="wrap_content">
<com.google.android.material.appbar.AppBarLayout
- android:backgroundTint="?colorSurfaceContainerLow"
android:layout_width="match_parent"
android:layout_height="match_parent">
diff --git a/org.fox.ttrss/src/main/res/layout/master_drawer_layout.xml b/org.fox.ttrss/src/main/res/layout/master_drawer_layout.xml
new file mode 100644
index 00000000..4ce1249a
--- /dev/null
+++ b/org.fox.ttrss/src/main/res/layout/master_drawer_layout.xml
@@ -0,0 +1,54 @@
+<androidx.drawerlayout.widget.DrawerLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/headlines_drawer"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent">
+
+ <androidx.coordinatorlayout.widget.CoordinatorLayout
+ android:fitsSystemWindows="true"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <com.google.android.material.floatingactionbutton.FloatingActionButton
+ android:id="@+id/master_fab"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="end|bottom"
+ android:visibility="gone"
+ android:src="@drawable/baseline_refresh_24"
+ android:layout_margin="16dp" />
+
+ <com.google.android.material.appbar.AppBarLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <include layout="@layout/toolbar" android:id="@+id/toolbar" />
+
+ </com.google.android.material.appbar.AppBarLayout>
+
+ <FrameLayout
+ android:id="@+id/headlines_fragment"
+ app:layout_behavior=".util.FabAwareScrollingViewBehavior"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"/>
+
+ </androidx.coordinatorlayout.widget.CoordinatorLayout>
+
+ <com.google.android.material.navigation.NavigationView
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:id="@+id/navigationView"
+ android:layout_width="300dp"
+ android:layout_height="match_parent"
+ android:layout_gravity="start">
+
+ <FrameLayout
+ android:id="@+id/feeds_fragment"
+ android:layout_width="match_parent"
+ android:background="?colorSurfaceContainer"
+ android:layout_height="match_parent" >
+ </FrameLayout>
+
+ </com.google.android.material.navigation.NavigationView>
+
+</androidx.drawerlayout.widget.DrawerLayout>
diff --git a/org.fox.ttrss/src/main/res/layout/toolbar.xml b/org.fox.ttrss/src/main/res/layout/toolbar.xml
index c256e587..989292b2 100755
--- a/org.fox.ttrss/src/main/res/layout/toolbar.xml
+++ b/org.fox.ttrss/src/main/res/layout/toolbar.xml
@@ -3,10 +3,8 @@
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/toolbar"
- android:elevation="4dp"
app:layout_scrollFlags="scroll|enterAlways"
app:titleTextAppearance="?attr/textAppearanceTitleMedium"
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:background="?colorSurfaceContainerLow"
android:minHeight="?attr/actionBarSize"/>