From dc8774f5c9593df187b51e83a7f353a0b2d6fae1 Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Thu, 8 Apr 2021 15:44:02 +0200 Subject: [PATCH] align single/dual-line list item layouts with avatar/icon according to material design Signed-off-by: Andy Scherzinger --- .../layout/conversation_privacy_toggle.xml | 21 ++++++++++------ .../res/layout/join_conversation_via_link.xml | 20 +++++++++------ app/src/main/res/layout/rv_item_contact.xml | 24 ++++++++++-------- .../main/res/layout/rv_item_conversation.xml | 9 +++---- .../res/layout/rv_item_notification_sound.xml | 25 +++++++++++++------ .../main/res/layout/rv_item_title_header.xml | 12 ++++++--- .../layout/user_info_details_table_item.xml | 2 +- app/src/main/res/values/strings.xml | 1 + app/src/main/res/values/styles.xml | 3 ++- 9 files changed, 73 insertions(+), 44 deletions(-) diff --git a/app/src/main/res/layout/conversation_privacy_toggle.xml b/app/src/main/res/layout/conversation_privacy_toggle.xml index ec9a2b762..a089e3069 100644 --- a/app/src/main/res/layout/conversation_privacy_toggle.xml +++ b/app/src/main/res/layout/conversation_privacy_toggle.xml @@ -2,6 +2,8 @@ ~ Nextcloud Talk application ~ ~ @author Mario Danic + ~ @author Andy Scherzinger + ~ Copyright (C) 2021 Andy Scherzinger ~ Copyright (C) 2017-2018 Mario Danic ~ ~ This program is free software: you can redistribute it and/or modify @@ -19,11 +21,15 @@ --> + app:tint="@color/colorPrimary" /> @@ -60,7 +66,8 @@ android:layout_height="wrap_content" android:layout_centerInParent="true" android:minHeight="@dimen/small_item_height" - android:visibility="gone"> + android:visibility="gone" + tools:visibility="gone"> ~ Copyright (C) 2017-2018 Mario Danic ~ ~ This program is free software: you can redistribute it and/or modify @@ -19,22 +21,25 @@ --> + app:tint="@color/colorPrimary" /> + android:textAppearance="@style/ListItem" /> diff --git a/app/src/main/res/layout/rv_item_contact.xml b/app/src/main/res/layout/rv_item_contact.xml index 476aebed1..77b2c2ca3 100644 --- a/app/src/main/res/layout/rv_item_contact.xml +++ b/app/src/main/res/layout/rv_item_contact.xml @@ -3,8 +3,8 @@ ~ ~ @author Mario Danic ~ @author Andy Scherzinger + ~ Copyright (C) 2021 Andy Scherzinger ~ Copyright (C) 2017 Mario Danic - ~ Copyright (C) 2017 Andy Scherzinger ~ ~ 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 @@ -24,8 +24,11 @@ xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" - android:layout_height="@dimen/rv_item_view_height" - android:layout_margin="@dimen/margin_between_elements" + android:layout_height="wrap_content" + android:layout_marginStart="@dimen/standard_margin" + android:layout_marginTop="@dimen/standard_half_margin" + android:layout_marginEnd="@dimen/standard_margin" + android:layout_marginBottom="@dimen/standard_half_margin" android:orientation="vertical"> + app:tint="@color/colorPrimary" /> + tools:text="Jane Doe" /> diff --git a/app/src/main/res/layout/rv_item_conversation.xml b/app/src/main/res/layout/rv_item_conversation.xml index afd1b174f..a737817fb 100644 --- a/app/src/main/res/layout/rv_item_conversation.xml +++ b/app/src/main/res/layout/rv_item_conversation.xml @@ -4,7 +4,7 @@ ~ @author Mario Danic ~ @author Andy Scherzinger ~ Copyright (C) 2017 Mario Danic - ~ Copyright (C) 2017 Andy Scherzinger + ~ Copyright (C) 2017-2021 Andy Scherzinger ~ ~ 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 @@ -23,9 +23,8 @@ - + android:layout_height="72dp" + android:layout_margin="@dimen/standard_margin"> diff --git a/app/src/main/res/layout/rv_item_notification_sound.xml b/app/src/main/res/layout/rv_item_notification_sound.xml index baa319c6e..e3c9a4d8a 100644 --- a/app/src/main/res/layout/rv_item_notification_sound.xml +++ b/app/src/main/res/layout/rv_item_notification_sound.xml @@ -2,6 +2,8 @@ ~ Nextcloud Talk application ~ ~ @author Mario Danic + ~ @author Andy Scherzinger + ~ Copyright (C) 2021 Andy Scherzinger ~ Copyright (C) 2017-2018 Mario Danic ~ ~ This program is free software: you can redistribute it and/or modify @@ -20,21 +22,26 @@ - + app:tint="@color/colorPrimary" /> + android:lines="1" + android:textAppearance="@style/ListItem" + tools:text="Ringy Gone" /> diff --git a/app/src/main/res/layout/rv_item_title_header.xml b/app/src/main/res/layout/rv_item_title_header.xml index cb47ef68c..51c67471e 100644 --- a/app/src/main/res/layout/rv_item_title_header.xml +++ b/app/src/main/res/layout/rv_item_title_header.xml @@ -2,6 +2,8 @@ ~ Nextcloud Talk application ~ ~ @author Mario Danic + ~ @author Andy Scherzinger + ~ Copyright (C) 2021 Andy Scherzinger ~ Copyright (C) 2017-2018 Mario Danic ~ ~ This program is free software: you can redistribute it and/or modify @@ -22,17 +24,19 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content" + android:background="@color/bg_default" android:orientation="vertical"> 999+ Open main menu Failed to save %1$s + selected diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 360edf86b..3f56951b6 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -44,7 +44,8 @@