summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/apptrackers_fragment.xml
diff options
context:
space:
mode:
authorjacquarg <guillaume.jacquart@hoodbrains.com>2021-11-12 11:34:57 +0100
committerjacquarg <guillaume.jacquart@hoodbrains.com>2021-11-12 11:51:59 +0100
commit2ea0e99f1bcec61e1a94bb7c35605fca49c53d1c (patch)
treecb4acda9ccb676dd60eb7ab95d3769ff7796622c /app/src/main/res/layout/apptrackers_fragment.xml
parent95f0c8fb06bd1aa57702f56f2c736e9718597080 (diff)
Integrate trackers module, small UI fixes
Diffstat (limited to 'app/src/main/res/layout/apptrackers_fragment.xml')
-rw-r--r--app/src/main/res/layout/apptrackers_fragment.xml19
1 files changed, 14 insertions, 5 deletions
diff --git a/app/src/main/res/layout/apptrackers_fragment.xml b/app/src/main/res/layout/apptrackers_fragment.xml
index 1f3063d..f037beb 100644
--- a/app/src/main/res/layout/apptrackers_fragment.xml
+++ b/app/src/main/res/layout/apptrackers_fragment.xml
@@ -32,6 +32,7 @@
<androidx.core.widget.NestedScrollView
android:layout_height="match_parent"
android:layout_width="match_parent"
+ android:fillViewport="true"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
>
@@ -40,10 +41,11 @@
android:layout_width="match_parent"
android:orientation="vertical"
>
- <!--LinearLayout
+ <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
+ android:padding="16dp"
android:gravity="center_vertical">
<TextView
android:layout_width="0dp"
@@ -51,14 +53,19 @@
android:layout_weight="1"
android:text="@string/apptrackers_block_all_toggle"
/>
- <androidx.appcompat.widget.SwitchCompat
+ <Switch
android:id="@+id/block_all_toggle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
- </LinearLayout-->
+ </LinearLayout>
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="1dp"
+ android:background="@color/grey_divider"
+ />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/trackers"
- android:layout_height="wrap_content"
+ android:layout_height="match_parent"
android:layout_width="match_parent"
android:layout_marginBottom="32dp"
tools:listitem="@layout/apptrackers_item_tracker_toggle"
@@ -66,9 +73,11 @@
/>
<TextView
android:id="@+id/no_trackers_yet"
+ android:padding="32dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:text="@string/apptrackers_no_trackers_yet"
+ android:gravity="center"
+ tools:text="@string/apptrackers_no_trackers_yet_block_off"
/>
</LinearLayout>
</androidx.core.widget.NestedScrollView>