From 761bfb9c169f4c0671efa0b225fc4d2829a8b028 Mon Sep 17 00:00:00 2001 From: AndyScherzinger Date: Tue, 24 Oct 2017 21:37:04 +0200 Subject: [PATCH] add preview texts for Android Studio Signed-off-by: Andy Scherzinger --- app/src/main/res/layout/controller_generic_rv.xml | 5 +++-- app/src/main/res/layout/rv_item_call.xml | 9 +++++++-- app/src/main/res/layout/rv_item_contact.xml | 6 +++++- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/app/src/main/res/layout/controller_generic_rv.xml b/app/src/main/res/layout/controller_generic_rv.xml index 11a67ce51..063b26d94 100644 --- a/app/src/main/res/layout/controller_generic_rv.xml +++ b/app/src/main/res/layout/controller_generic_rv.xml @@ -20,6 +20,7 @@ --> - + android:layout_height="match_parent" + tools:listitem="@layout/rv_item_call"/> \ No newline at end of file diff --git a/app/src/main/res/layout/rv_item_call.xml b/app/src/main/res/layout/rv_item_call.xml index 2a0527ddf..e25072d81 100644 --- a/app/src/main/res/layout/rv_item_call.xml +++ b/app/src/main/res/layout/rv_item_call.xml @@ -3,7 +3,9 @@ ~ Nextcloud Talk application ~ ~ @author Mario Danic + ~ @author 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 @@ -21,6 +23,7 @@ @@ -63,14 +66,16 @@ android:layout_height="wrap_content" android:ellipsize="middle" android:singleLine="true" - android:textAppearance="?android:attr/textAppearanceListItem"/> + android:textAppearance="?android:attr/textAppearanceListItem" + tools:text="Call item text"/> + android:textColor="?android:attr/textColorSecondary" + tools:text="30/12/2017 12:30am"/> diff --git a/app/src/main/res/layout/rv_item_contact.xml b/app/src/main/res/layout/rv_item_contact.xml index 67c1e7cb9..71433a8ac 100644 --- a/app/src/main/res/layout/rv_item_contact.xml +++ b/app/src/main/res/layout/rv_item_contact.xml @@ -3,7 +3,9 @@ ~ Nextcloud Talk application ~ ~ @author Mario Danic + ~ @author 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 @@ -21,6 +23,7 @@ @@ -58,6 +61,7 @@ android:ellipsize="end" android:layout_marginEnd="@dimen/activity_horizontal_margin" android:textAppearance="?android:attr/textAppearanceListItem" - android:layout_toEndOf="@id/avatar_image"/> + android:layout_toEndOf="@id/avatar_image" + tools:text="Contact item text"/> \ No newline at end of file