From f5884f84035b4a308f51e7314503674655a509dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernat=20Borr=C3=A1s?= Date: Tue, 28 Mar 2023 12:17:29 +0200 Subject: [PATCH 1/2] Some UI colors && Font styles --- .../main/res/layout/tagging_detailed_item.xml | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/taggingviewer/src/main/res/layout/tagging_detailed_item.xml b/taggingviewer/src/main/res/layout/tagging_detailed_item.xml index d1aa802..ad81dfc 100644 --- a/taggingviewer/src/main/res/layout/tagging_detailed_item.xml +++ b/taggingviewer/src/main/res/layout/tagging_detailed_item.xml @@ -12,8 +12,8 @@ android:layout_height="wrap_content" android:layout_gravity="top" android:layout_marginLeft="8dp" - android:layout_marginRight="8dp" android:layout_marginTop="20dp" + android:layout_marginRight="8dp" tools:text="@tools:sample/date/hhmmss" /> + From 0d3512d7ffaf980f4fb922277862d5c3faf09990 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernat=20Borr=C3=A1s?= Date: Tue, 28 Mar 2023 12:20:57 +0200 Subject: [PATCH 2/2] Add version to UI --- .../adevinta/android/taggingviewer/DetailTaggingAdapter.kt | 4 ++++ taggingviewer/src/main/res/values/strings.xml | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 taggingviewer/src/main/res/values/strings.xml diff --git a/taggingviewer/src/main/java/com/adevinta/android/taggingviewer/DetailTaggingAdapter.kt b/taggingviewer/src/main/java/com/adevinta/android/taggingviewer/DetailTaggingAdapter.kt index f63bd12..0d325f4 100644 --- a/taggingviewer/src/main/java/com/adevinta/android/taggingviewer/DetailTaggingAdapter.kt +++ b/taggingviewer/src/main/java/com/adevinta/android/taggingviewer/DetailTaggingAdapter.kt @@ -57,6 +57,10 @@ internal class DetailTaggingViewHolder(binding: TaggingDetailedItemBinding) : Re } binding.detailItemTime.text = timeFormat.format(Date(tagEntry.timestamp)) + val version = tagEntry.version?.toString() ?: "-" + binding.detailItemVersion.text = binding.detailItemVersion.context.getString( + R.string.tagging_viewer_item_version, version + ) binding.detailItemIcon.setImageResource( when (tagEntry) { diff --git a/taggingviewer/src/main/res/values/strings.xml b/taggingviewer/src/main/res/values/strings.xml new file mode 100644 index 0000000..812c402 --- /dev/null +++ b/taggingviewer/src/main/res/values/strings.xml @@ -0,0 +1,4 @@ + + + Version: %s + \ No newline at end of file