diff options
Diffstat (limited to 'app/src/main/res/layout/trackers_item_app.xml')
-rw-r--r-- | app/src/main/res/layout/trackers_item_app.xml | 44 |
1 files changed, 32 insertions, 12 deletions
diff --git a/app/src/main/res/layout/trackers_item_app.xml b/app/src/main/res/layout/trackers_item_app.xml index 6af43ea..883a4da 100644 --- a/app/src/main/res/layout/trackers_item_app.xml +++ b/app/src/main/res/layout/trackers_item_app.xml @@ -1,20 +1,36 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2023 MURENA SAS + ~ + ~ This program is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ This program is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with this program. If not, see <https://www.gnu.org/licenses/>. + --> <androidx.constraintlayout.widget.ConstraintLayout 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_height="60dp" android:layout_width="match_parent" - android:paddingStart="16dp" - android:paddingEnd="16dp" + android:paddingHorizontal="24dp" + android:paddingVertical="12dp" android:gravity="center_vertical" android:background="?attr/selectableItemBackground" > <ImageView android:id="@+id/icon" - android:layout_height="32dp" - android:layout_width="32dp" + android:layout_height="24dp" + android:layout_width="24dp" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toBottomOf="parent" @@ -24,10 +40,12 @@ android:id="@+id/title" android:layout_height="wrap_content" android:layout_width="0dp" + android:layout_marginStart="16dp" android:maxLines="1" android:ellipsize="end" - android:layout_marginStart="16dp" android:textSize="14sp" + android:lineHeight="20sp" + android:textFontWeight="400" android:textColor="@color/primary_text" tools:text="Body sensor" app:layout_constraintLeft_toRightOf="@+id/icon" @@ -42,20 +60,22 @@ android:layout_width="0dp" android:maxLines="1" android:ellipsize="end" - android:layout_marginStart="16dp" - android:textSize="14sp" - android:textColor="@color/secondary_text" - tools:text="1 tracker blocked out of 4" - app:layout_constraintLeft_toRightOf="@+id/icon" + android:textSize="12sp" + android:lineHeight="16sp" + android:textFontWeight="400" + android:textColor="@color/disabled" + tools:text="5 trackers detected" + app:layout_constraintLeft_toLeftOf="@+id/title" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintTop_toBottomOf="@+id/title" - app:layout_constraintRight_toLeftOf="@+id/arrow" + app:layout_constraintRight_toRightOf="@+id/title" /> <ImageView android:id="@+id/arrow" android:layout_width="24dp" android:layout_height="24dp" android:src="@drawable/ic_chevron_right_24dp" + android:layout_marginStart="16dp" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toBottomOf="parent" |