Skip to content
Snippets Groups Projects
Commit 3f9eda64 authored by Farizki Kurniawan's avatar Farizki Kurniawan
Browse files

feat: update UI

parent d955097c
No related merge requests found
......@@ -26,6 +26,7 @@ class TransactionMenuAdapter(var transactions : ArrayList<Transaction>, val acti
val resultDate = Date(get.creationTime)
binding.date.text = "Created: ${sdf.format(resultDate)}"
binding.transactionLayout.setOnClickListener{action.onClick(get.id)}
binding.locationText.text = get.location
}
}
......
......@@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/transactionLayout"
android:layout_width="match_parent"
android:layout_height="120dp"
android:layout_height="130dp"
android:orientation="vertical"
app:cardCornerRadius="5dp"
app:cardElevation="2dp"
......@@ -52,6 +52,17 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/content" />
<TextView
android:id="@+id/locationText"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="1"
android:text="Location"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/nominal" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment