-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DashPay: Send payment | Contact UI (#464)
* Add Sending To on Enter Amount and Confirm Screens * PlatformRepo: Add contact keychains to wallet when updating contacts * Add NotificationItem to handle many types of notifications * Add Preliminary History to Profile Page if contact was accepted * Add username support to Transaction Details screens * DashPayUserActivity: only show history if its a full contact * BlockchainService: Add reset bloom filters action Submit new bloom filters when contact is added * DashPayUserActivity: Update screen after Send/Accept (was broken earlier) * Use correct flow Send -> Select a Contact -> Contacts Screen -> contact -> Enter Amount -> Confirm -> Authenticate -> Results -> Profile/History * Don't update contacts if there is no dashpay contract or the username is not completely registered * Replace runBlocking in two places * Use loadDistinct when getting profile information * Move RoomDatabaseExtensions to data * Basic implementation of blockchainIdentity caching * Moved PlatformRepo initialization into main thread. * Changed the way of performing periodic contacts sync by replacing Handler with direct coroutine approach Co-authored-by: Tomasz Ludek <tomasz@dash.org>
- Loading branch information
1 parent
b8c0815
commit 437e12c
Showing
35 changed files
with
1,185 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout 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="70dp" | ||
android:layout_marginLeft="11dp" | ||
android:layout_marginRight="15dp" | ||
android:layout_marginBottom="10dp" | ||
android:gravity="center"> | ||
|
||
<TextView | ||
android:id="@+id/transaction_row_primary_status" | ||
style="@style/MontserratMedium" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:paddingLeft="10dp" | ||
android:paddingRight="6dp" | ||
android:textColor="@color/primary_status" | ||
android:textSize="14sp" | ||
tools:text="Receiving" /> | ||
|
||
<TextView | ||
android:id="@+id/transaction_row_secondary_status" | ||
style="@style/MontserratMedium.B.12" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignBottom="@id/transaction_row_primary_status" | ||
android:layout_toEndOf="@id/transaction_row_primary_status" | ||
android:layout_toRightOf="@id/transaction_row_primary_status" | ||
android:textColor="@color/secondary_status" | ||
tools:text="Processing" /> | ||
|
||
<TextView | ||
android:id="@+id/transaction_row_time" | ||
style="@style/MontserratRegular.MG.12" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@id/transaction_row_primary_status" | ||
android:layout_alignParentLeft="true" | ||
android:layout_marginRight="4dp" | ||
android:layout_marginBottom="5dp" | ||
android:layout_toLeftOf="@id/rate_container" | ||
android:ellipsize="end" | ||
android:lines="1" | ||
android:paddingLeft="10dp" | ||
android:paddingRight="6dp" | ||
android:textColor="@color/dash_gray" | ||
tools:text="August 30, 11:28 AM" /> | ||
|
||
<LinearLayout | ||
android:id="@+id/dash_amount_container" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignBottom="@id/transaction_row_primary_status" | ||
android:layout_alignParentTop="true" | ||
android:layout_alignParentEnd="true" | ||
android:layout_alignParentRight="true" | ||
android:layout_marginRight="11dp" | ||
android:gravity="center|right" | ||
android:orientation="horizontal"> | ||
|
||
<TextView | ||
android:id="@+id/transaction_amount_signal" | ||
style="@style/MontserratMedium.MG" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginEnd="2dp" | ||
android:layout_marginRight="2dp" | ||
android:textSize="17sp" | ||
tools:text="+" | ||
tools:visibility="visible" /> | ||
|
||
<ImageView | ||
android:id="@+id/dash_amount_symbol" | ||
android:layout_width="18.62dp" | ||
android:layout_height="14.63dp" | ||
android:layout_marginTop="1dp" | ||
android:layout_marginEnd="4dp" | ||
android:layout_marginRight="4dp" | ||
app:srcCompat="@drawable/ic_dash_symbol_gray" /> | ||
|
||
<org.dash.wallet.common.ui.CurrencyTextView | ||
android:id="@+id/transaction_row_value" | ||
style="@style/MontserratMedium" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:textSize="14sp" | ||
tools:text="4.3939" /> | ||
|
||
</LinearLayout> | ||
|
||
<FrameLayout | ||
android:id="@+id/rate_container" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@id/dash_amount_container" | ||
android:layout_alignParentEnd="true" | ||
android:layout_alignParentRight="true" | ||
android:paddingStart="0dp" | ||
android:paddingLeft="0dp" | ||
android:paddingEnd="15dp" | ||
android:paddingRight="15dp"> | ||
|
||
<org.dash.wallet.common.ui.CurrencyTextView | ||
android:id="@+id/transaction_row_fiat" | ||
style="@style/MontserratMedium.MG.12" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:textColor="@color/dash_gray" | ||
tools:text="350.98" /> | ||
|
||
<TextView | ||
android:id="@+id/transaction_row_rate_not_available" | ||
style="@style/MontserratMedium.MG.12" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/transaction_row_rate_not_available" | ||
android:textColor="@color/dash_gray" | ||
tools:text="Not available" | ||
tools:visibility="visible" /> | ||
|
||
</FrameLayout> | ||
|
||
</RelativeLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.