summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/search_fragment.xml
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2020-03-12 13:28:30 +0100
committerByteHamster <info@bytehamster.com>2020-03-15 20:09:11 +0100
commit7f4d43deb16ee0ce6a49f78805e5600d3e01161f (patch)
tree504079a84ba03df68a10fac7048d7240faa94cd3 /app/src/main/res/layout/search_fragment.xml
parent03d1f41e9bd88e1920be306ef8bcd10642ce5527 (diff)
downloadAntennaPod-7f4d43deb16ee0ce6a49f78805e5600d3e01161f.zip
Moved Toolbar to individual Fragments
Diffstat (limited to 'app/src/main/res/layout/search_fragment.xml')
-rw-r--r--app/src/main/res/layout/search_fragment.xml37
1 files changed, 25 insertions, 12 deletions
diff --git a/app/src/main/res/layout/search_fragment.xml b/app/src/main/res/layout/search_fragment.xml
index 489c2d392..e9e59b592 100644
--- a/app/src/main/res/layout/search_fragment.xml
+++ b/app/src/main/res/layout/search_fragment.xml
@@ -1,17 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
-<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_height="match_parent"
- android:layout_width="match_parent">
+<RelativeLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:layout_height="match_parent"
+ android:layout_width="match_parent">
+
+ <androidx.appcompat.widget.Toolbar
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:minHeight="?attr/actionBarSize"
+ android:theme="?attr/actionBarTheme"
+ app:navigationIcon="?homeAsUpIndicator"
+ app:title="@string/search_label"
+ android:id="@+id/toolbar"/>
<ProgressBar
- android:id="@+id/progressBar"
- style="?android:attr/progressBarStyle"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center" />
+ android:layout_centerInParent="true"
+ android:id="@+id/progressBar"
+ style="?android:attr/progressBarStyle"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"/>
<ListView
- android:id="@+id/listview"
- android:layout_width="match_parent"
- android:layout_height="match_parent" />
-</FrameLayout> \ No newline at end of file
+ android:layout_below="@id/toolbar"
+ android:id="@+id/listview"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"/>
+</RelativeLayout>