2018-06-21 20:08:50 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?> <!--
|
2017-09-12 02:07:43 +00:00
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-02-28 01:11:10 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2017-09-12 02:07:43 +00:00
|
|
|
android:layout_width="match_parent"
|
2017-09-24 21:52:32 +00:00
|
|
|
android:layout_height="wrap_content"
|
2017-09-12 02:07:43 +00:00
|
|
|
android:orientation="vertical"
|
2018-02-28 01:11:10 +00:00
|
|
|
android:paddingBottom="5dp"
|
2017-09-12 02:07:43 +00:00
|
|
|
android:paddingLeft="10dp"
|
|
|
|
android:paddingRight="10dp"
|
2018-02-28 01:11:10 +00:00
|
|
|
android:paddingTop="5dp">
|
2017-09-12 02:07:43 +00:00
|
|
|
|
|
|
|
<RelativeLayout
|
2017-11-22 01:26:24 +00:00
|
|
|
android:id="@+id/rlTransactionItem"
|
2017-09-12 02:07:43 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentStart="true"
|
2018-02-28 01:11:10 +00:00
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:background="@drawable/transaction_list_item_background">
|
2017-11-21 02:24:48 +00:00
|
|
|
|
2017-09-14 01:06:51 +00:00
|
|
|
<TextView
|
2018-06-21 20:08:50 +00:00
|
|
|
android:id="@+id/tvFrom"
|
2017-09-12 02:07:43 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-02-28 01:11:10 +00:00
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
android:layout_toStartOf="@+id/ivArrowFromTo"
|
2017-09-12 02:07:43 +00:00
|
|
|
android:ems="10"
|
|
|
|
android:inputType="text"
|
|
|
|
android:text="from" />
|
|
|
|
|
2018-02-28 01:11:10 +00:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/ivArrowFromTo"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
android:tint="@color/black"
|
|
|
|
app:srcCompat="@drawable/ic_arrow_forward" />
|
|
|
|
|
2017-09-14 01:06:51 +00:00
|
|
|
<TextView
|
2018-06-21 20:08:50 +00:00
|
|
|
android:id="@+id/tvTo"
|
2017-09-12 02:07:43 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentRight="true"
|
2018-02-28 01:11:10 +00:00
|
|
|
android:layout_toEndOf="@+id/ivArrowFromTo"
|
2017-09-12 02:07:43 +00:00
|
|
|
android:ems="10"
|
|
|
|
android:inputType="text"
|
|
|
|
android:text="to"
|
|
|
|
android:textAlignment="textEnd" />
|
|
|
|
|
2018-02-28 01:11:10 +00:00
|
|
|
<Space
|
|
|
|
android:id="@+id/sAfterFromTo"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:layout_marginBottom="5dp"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2018-06-21 20:08:50 +00:00
|
|
|
android:layout_below="@id/tvFrom"/>
|
2018-02-28 01:11:10 +00:00
|
|
|
|
2017-09-14 01:06:51 +00:00
|
|
|
<TextView
|
2018-06-21 20:08:50 +00:00
|
|
|
android:id="@+id/tvDate"
|
2018-02-28 01:11:10 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/sAfterFromTo"
|
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
android:layout_toStartOf="@+id/ivArrowFromTo"
|
|
|
|
android:ems="10"
|
|
|
|
android:text="02 Oct"
|
|
|
|
android:textSize="14sp"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
<TextView
|
2018-06-21 20:08:50 +00:00
|
|
|
android:id="@+id/tvTime"
|
2018-02-28 01:11:10 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2018-06-21 20:08:50 +00:00
|
|
|
android:layout_below="@id/tvDate"
|
2018-02-28 01:11:10 +00:00
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
android:layout_toStartOf="@+id/ivArrowFromTo"
|
|
|
|
android:ems="10"
|
|
|
|
android:text="15:01:18 CET" />
|
|
|
|
|
|
|
|
<TextView
|
2018-06-21 20:08:50 +00:00
|
|
|
android:id="@+id/tvCryptoAmount"
|
2017-09-12 02:07:43 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-02-28 01:11:10 +00:00
|
|
|
android:layout_alignParentEnd="true"
|
2017-09-12 02:07:43 +00:00
|
|
|
android:layout_alignWithParentIfMissing="false"
|
2018-02-28 01:11:10 +00:00
|
|
|
android:layout_below="@id/sAfterFromTo"
|
|
|
|
android:layout_toEndOf="@+id/ivArrowFromTo"
|
|
|
|
android:ems="10"
|
|
|
|
android:inputType="text"
|
|
|
|
android:text="+ 1 BTS"
|
|
|
|
android:textAlignment="textEnd"
|
|
|
|
android:textSize="14sp"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
<TextView
|
2018-06-21 20:08:50 +00:00
|
|
|
android:id="@+id/tvFiatEquivalent"
|
2018-02-28 01:11:10 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_alignWithParentIfMissing="false"
|
2018-06-21 20:08:50 +00:00
|
|
|
android:layout_below="@id/tvCryptoAmount"
|
2018-02-28 01:11:10 +00:00
|
|
|
android:layout_toEndOf="@+id/ivArrowFromTo"
|
2017-09-12 02:07:43 +00:00
|
|
|
android:ems="10"
|
2017-09-17 00:41:10 +00:00
|
|
|
android:inputType="text"
|
2018-02-28 01:11:10 +00:00
|
|
|
android:text="0.005€"
|
|
|
|
android:textAlignment="textEnd" />
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-09-12 02:07:43 +00:00
|
|
|
</RelativeLayout>
|
2018-06-21 20:08:50 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
-->
|
|
|
|
<android.support.v7.widget.CardView
|
|
|
|
xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
card_view:cardElevation="4dp"
|
|
|
|
card_view:cardCornerRadius="4dp"
|
|
|
|
android:layout_margin="4dp">
|
|
|
|
|
|
|
|
<android.support.constraint.ConstraintLayout
|
|
|
|
android:id="@+id/rootView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:foreground="?android:attr/selectableItemBackground">
|
|
|
|
|
|
|
|
<android.support.constraint.Guideline
|
|
|
|
android:id="@+id/firstVerticalGuideline"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical"
|
|
|
|
app:layout_constraintGuide_percent="0.05"/>
|
|
|
|
|
|
|
|
<android.support.constraint.Guideline
|
|
|
|
android:id="@+id/secondVerticalGuideline"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical"
|
|
|
|
app:layout_constraintGuide_percent="0.45"/>
|
|
|
|
|
|
|
|
<android.support.constraint.Guideline
|
|
|
|
android:id="@+id/thirdVerticalGuideline"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical"
|
|
|
|
app:layout_constraintGuide_percent="0.55"/>
|
|
|
|
|
|
|
|
<android.support.constraint.Guideline
|
|
|
|
android:id="@+id/fourthVerticalGuideline"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical"
|
|
|
|
app:layout_constraintGuide_percent="0.95"/>
|
|
|
|
|
|
|
|
<android.support.constraint.Guideline
|
|
|
|
android:id="@+id/centeredVerticalGuideline"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical"
|
|
|
|
app:layout_constraintGuide_percent="0.50"/>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/vPaymentDirection"
|
|
|
|
android:layout_width="8dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:background="@color/receiveAmount"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/tvFrom"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:maxLines="1"
|
|
|
|
tools:text="denzel-washington"
|
|
|
|
android:textAppearance="@android:style/TextAppearance.Material.Body1"
|
|
|
|
android:textColor="@color/gray"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/firstVerticalGuideline"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/secondVerticalGuideline"/>
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/ivDirectionArrow"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:src="@drawable/ic_arrow_forward_receive"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/tvFrom"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/tvFrom"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/secondVerticalGuideline"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/thirdVerticalGuideline"
|
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/tvTo"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:maxLines="1"
|
|
|
|
tools:text="joes-grocery-13"
|
|
|
|
android:textAppearance="@android:style/TextAppearance.Material.Body1"
|
|
|
|
android:textColor="@color/gray"
|
|
|
|
android:textAlignment="textEnd"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/tvFrom"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/thirdVerticalGuideline"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/fourthVerticalGuideline"/>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/vSeparator"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:background="@color/lightGray"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/tvFrom"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/firstVerticalGuideline"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/fourthVerticalGuideline" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/llMemo"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:visibility="gone"
|
|
|
|
card_view:layout_constraintTop_toBottomOf="@id/vSeparator"
|
|
|
|
card_view:layout_constraintStart_toEndOf="@id/firstVerticalGuideline"
|
|
|
|
card_view:layout_constraintEnd_toStartOf="@id/fourthVerticalGuideline">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/tvMemo"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:maxLines="2"
|
|
|
|
android:textAppearance="@android:style/TextAppearance.Material.Body1"
|
|
|
|
tools:text="Here is a memo if exists and can span up to 2 lines, if it get lager we will have problems with the rendering"/>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:background="@color/lightGray"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/tvDate"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:maxLines="1"
|
|
|
|
tools:text="02 Oct"
|
|
|
|
android:textColor="@color/black"
|
|
|
|
android:textAppearance="@android:style/TextAppearance.Material.Body1"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/llMemo"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/firstVerticalGuideline"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/centeredVerticalGuideline"/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/tvTime"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:maxLines="1"
|
|
|
|
tools:text="15:01:18 CET"
|
|
|
|
android:textAppearance="@android:style/TextAppearance.Material.Body1"
|
|
|
|
android:textColor="@color/gray"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/tvDate"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/firstVerticalGuideline"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/centeredVerticalGuideline"/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/tvCryptoAmount"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:maxLines="1"
|
|
|
|
tools:text="1234567.1234 BTS"
|
|
|
|
android:textColor="@color/black"
|
|
|
|
android:textAppearance="@android:style/TextAppearance.Material.Body1"
|
|
|
|
android:textAlignment="textEnd"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/tvDate"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/centeredVerticalGuideline"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/fourthVerticalGuideline" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/tvFiatEquivalent"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginBottom="16dp"
|
|
|
|
android:maxLines="1"
|
|
|
|
tools:text="4119.75 $"
|
|
|
|
android:textAppearance="@android:style/TextAppearance.Material.Body1"
|
|
|
|
android:textColor="@color/gray"
|
|
|
|
android:textAlignment="textEnd"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/tvCryptoAmount"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/centeredVerticalGuideline"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/fourthVerticalGuideline"/>
|
|
|
|
|
|
|
|
</android.support.constraint.ConstraintLayout>
|
|
|
|
|
|
|
|
</android.support.v7.widget.CardView>
|