Iterate on button styles, including initial loading animation.

This commit is contained in:
Kevin Gorham 2020-03-26 09:46:21 -04:00
parent 28d19bce1f
commit ae41bd50cf
No known key found for this signature in database
GPG Key ID: CCA55602DF49FC38
4 changed files with 12 additions and 5 deletions

View File

@ -7,7 +7,7 @@ import com.airbnb.lottie.LottieAnimationView
class MagicSnakeLoader(
val lottie: LottieAnimationView,
private val scanningStartFrame: Int = 100,
private val scanningEndFrame: Int = 175,
private val scanningEndFrame: Int = 187,
val totalFrames: Int = 200
) : ValueAnimator.AnimatorUpdateListener {
private var isPaused: Boolean = true

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="buttonCornerRadius">0dp</dimen>
<!-- Floats -->

View File

@ -10,6 +10,7 @@
<item name="shapeAppearanceSmallComponent">@style/Zcash.ShapeAppearance.SmallComponent</item>
<item name="shapeAppearanceMediumComponent">@style/Zcash.ShapeAppearance.MediumComponent</item>
</style>
<style name="ZcashTheme" parent="ZcashBaseTheme"/>
@ -67,17 +68,22 @@
<!-- Shape Appearances -->
<!-- General: buttons -->
<style name="Zcash.ShapeAppearance.SmallComponent" parent="ShapeAppearance.MaterialComponents.SmallComponent">
<item name="cornerFamily">rounded</item>
<item name="cornerSize">20dp</item>
<item name="cornerSize">8dp</item>
</style>
<!-- General: dialogs -->
<style name="Zcash.ShapeAppearance.MediumComponent" parent="ShapeAppearance.MaterialComponents.MediumComponent">
<item name="cornerFamily">rounded</item>
<item name="cornerSize">24dp</item>
<item name="cornerSize">12dp</item>
</style>
<!-- Component -->
<style name="Zcash.ShapeAppearance.TextInputLayout" parent="ShapeAppearance.MaterialComponents.SmallComponent">
<item name="cornerFamily">rounded</item>
<item name="cornerSize">8dp</item>
<item name="cornerSize">0dp</item>
</style>
<!-- Theme Overlays -->