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/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"
/>
+
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