diff options
author | Guillaume Jacquart <guillaume.jacquart@hoodbrains.com> | 2022-03-01 08:06:10 +0000 |
---|---|---|
committer | Guillaume Jacquart <guillaume.jacquart@hoodbrains.com> | 2022-03-01 08:06:10 +0000 |
commit | 41480b04ee31e8e694d370184c15de8c4dce03d0 (patch) | |
tree | 11a6458d30450420b7397560170579cfc857cded /app/src/main/res/layout | |
parent | 13b6d0463fe7fa5cc5586b677e17d38a0fd5d0dd (diff) |
Hide systems app behind parameter app in lists.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/apptrackers_item_tracker_toggle.xml | 32 | ||||
-rw-r--r-- | app/src/main/res/layout/item_app_toggle.xml | 16 |
2 files changed, 34 insertions, 14 deletions
diff --git a/app/src/main/res/layout/apptrackers_item_tracker_toggle.xml b/app/src/main/res/layout/apptrackers_item_tracker_toggle.xml index baab3d9..20e0bdc 100644 --- a/app/src/main/res/layout/apptrackers_item_tracker_toggle.xml +++ b/app/src/main/res/layout/apptrackers_item_tracker_toggle.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<androidx.appcompat.widget.LinearLayoutCompat - xmlns:android="http://schemas.android.com/apk/res/android" +<androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" + xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/container" android:layout_height="52dp" android:layout_width="match_parent" @@ -21,10 +21,28 @@ tools:text="Body sensor" /> - <Switch - android:id="@+id/toggle" + <androidx.constraintlayout.widget.ConstraintLayout android:layout_width="wrap_content" - android:layout_height="24dp" - android:checked="true" - /> + android:layout_height="wrap_content"> + <Switch + android:id="@+id/toggle" + android:layout_width="wrap_content" + android:layout_height="24dp" + android:checked="true" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + /> + <View + android:id="@+id/toggle_clicker" + android:layout_width="0dp" + android:layout_height="0dp" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + android:clickable="true" + /> + </androidx.constraintlayout.widget.ConstraintLayout> </androidx.appcompat.widget.LinearLayoutCompat> diff --git a/app/src/main/res/layout/item_app_toggle.xml b/app/src/main/res/layout/item_app_toggle.xml index d0f565f..8bee0e2 100644 --- a/app/src/main/res/layout/item_app_toggle.xml +++ b/app/src/main/res/layout/item_app_toggle.xml @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" + xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/item_permission_apps" android:layout_height="wrap_content" android:layout_width="match_parent" @@ -34,11 +35,12 @@ tools:text="Body sensor" /> - <Switch - android:id="@+id/toggle" - android:layout_alignParentEnd="true" - android:layout_centerVertical="true" - android:layout_height="wrap_content" - android:layout_width="wrap_content" - /> + <Switch + android:id="@+id/toggle" + android:layout_alignParentEnd="true" + android:layout_centerVertical="true" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + /> + </RelativeLayout>
\ No newline at end of file |