-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature maya enter amount #1265
Conversation
…o/dash-wallet into feature-maya-integration-address
…into feature-maya-integration-address
@@ -207,17 +236,11 @@ class AmountView(context: Context, attrs: AttributeSet) : ConstraintLayout(conte | |||
binding.resultCurrencyToggle.isVisible = showCurrencySelector && dashToFiat | |||
|
|||
if (dashToFiat) { | |||
binding.inputSymbolDash.isVisible = isCurrencySymbolFirst | |||
binding.inputSymbolDashPostfix.isVisible = !isCurrencySymbolFirst | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The symbol is now inserted into the Text Span, rather than being in a separate view.
// } | ||
// | ||
// listOf() | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for now we will mock the result of the inbound_addresses api.
data class SwapTradeResponseData( | ||
val fee: SwapApiAmount? = null, | ||
val id: String? = null, | ||
@SerializedName("applied_subscription_benefit") | ||
val applied_subscription_benefit: Boolean? = null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This class and many others were copied from Coinbase. We will delete them or modify them in the next stories.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work. The variable font size for AmountView works really well
app:autoSizeMaxTextSize="48sp" | ||
android:gravity="center" | ||
android:layout_gravity="center|bottom" | ||
app:sizeToFit="true" /--> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct, not needed.
integrations/maya/build.gradle
Outdated
@@ -73,6 +73,9 @@ dependencies { | |||
implementation "com.google.android.material:material:$materialVersion" | |||
implementation "androidx.constraintlayout:constraintlayout:$constrainLayoutVersion" | |||
implementation "androidx.swiperefreshlayout:swiperefreshlayout:$swipeRefreshLayoutVersion" | |||
implementation "io.coil-kt:coil:$coilVersion" | |||
implementation "androidx.browser:browser:$browserVersion" | |||
implementation 'me.grantland:autofittextview:0.2.1' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AutofitTextView
seems to be commented out, maybe we don't need this import
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this will be removed.
Issue being fixed or feature implemented
This interface is taken from the Coinbase integration and modified to meet the new designs.
Some Coinbase items remain and will be refactored or deleted in the next stories.
Related PR's and Dependencies
Screenshots / Videos
How Has This Been Tested?
Checklist: