From 756abb8f5f04341f2658881eb0ebe54e7a102eca Mon Sep 17 00:00:00 2001 From: Severiano Jaramillo Date: Wed, 20 Mar 2019 11:59:36 -0600 Subject: [PATCH] Added the year to the date field in Transaction items, and made the to and from text fields more visible. --- .../bitsybitshareswallet/adapters/TransfersDetailsAdapter.kt | 2 +- app/src/main/res/layout/item_transaction.xml | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/cy/agorise/bitsybitshareswallet/adapters/TransfersDetailsAdapter.kt b/app/src/main/java/cy/agorise/bitsybitshareswallet/adapters/TransfersDetailsAdapter.kt index 04192b2..34a9645 100644 --- a/app/src/main/java/cy/agorise/bitsybitshareswallet/adapters/TransfersDetailsAdapter.kt +++ b/app/src/main/java/cy/agorise/bitsybitshareswallet/adapters/TransfersDetailsAdapter.kt @@ -74,7 +74,7 @@ class TransfersDetailsAdapter(private val context: Context) : init { val locale = ConfigurationCompat.getLocales(context.resources.configuration)[0] - dateFormat = SimpleDateFormat("dd MMM", locale) + dateFormat = SimpleDateFormat("dd MMM, yyyy", locale) timeFormat = SimpleDateFormat("HH:mm:ss z", locale) } diff --git a/app/src/main/res/layout/item_transaction.xml b/app/src/main/res/layout/item_transaction.xml index b6e5e7b..2e50971 100644 --- a/app/src/main/res/layout/item_transaction.xml +++ b/app/src/main/res/layout/item_transaction.xml @@ -71,7 +71,6 @@ android:maxLines="1" tools:text="denzel-washington" android:textAppearance="@style/TextAppearance.Bitsy.Body2" - android:textColor="@color/gray" app:layout_constraintTop_toTopOf="parent" app:layout_constraintStart_toEndOf="@id/firstVerticalGuideline" app:layout_constraintEnd_toStartOf="@id/secondVerticalGuideline"/> @@ -94,7 +93,6 @@ android:maxLines="1" tools:text="joes-grocery-13" android:textAppearance="@style/TextAppearance.Bitsy.Body2" - android:textColor="@color/gray" android:textAlignment="textEnd" app:layout_constraintTop_toTopOf="@id/tvFrom" app:layout_constraintStart_toEndOf="@id/thirdVerticalGuideline"