Iterate on button styles, including initial loading animation.
This commit is contained in:
parent
28d19bce1f
commit
ae41bd50cf
|
@ -7,7 +7,7 @@ import com.airbnb.lottie.LottieAnimationView
|
||||||
class MagicSnakeLoader(
|
class MagicSnakeLoader(
|
||||||
val lottie: LottieAnimationView,
|
val lottie: LottieAnimationView,
|
||||||
private val scanningStartFrame: Int = 100,
|
private val scanningStartFrame: Int = 100,
|
||||||
private val scanningEndFrame: Int = 175,
|
private val scanningEndFrame: Int = 187,
|
||||||
val totalFrames: Int = 200
|
val totalFrames: Int = 200
|
||||||
) : ValueAnimator.AnimatorUpdateListener {
|
) : ValueAnimator.AnimatorUpdateListener {
|
||||||
private var isPaused: Boolean = true
|
private var isPaused: Boolean = true
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
|
<dimen name="buttonCornerRadius">0dp</dimen>
|
||||||
|
|
||||||
<!-- Floats -->
|
<!-- Floats -->
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
<item name="shapeAppearanceSmallComponent">@style/Zcash.ShapeAppearance.SmallComponent</item>
|
<item name="shapeAppearanceSmallComponent">@style/Zcash.ShapeAppearance.SmallComponent</item>
|
||||||
<item name="shapeAppearanceMediumComponent">@style/Zcash.ShapeAppearance.MediumComponent</item>
|
<item name="shapeAppearanceMediumComponent">@style/Zcash.ShapeAppearance.MediumComponent</item>
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="ZcashTheme" parent="ZcashBaseTheme"/>
|
<style name="ZcashTheme" parent="ZcashBaseTheme"/>
|
||||||
|
@ -67,17 +68,22 @@
|
||||||
|
|
||||||
<!-- Shape Appearances -->
|
<!-- Shape Appearances -->
|
||||||
|
|
||||||
|
<!-- General: buttons -->
|
||||||
<style name="Zcash.ShapeAppearance.SmallComponent" parent="ShapeAppearance.MaterialComponents.SmallComponent">
|
<style name="Zcash.ShapeAppearance.SmallComponent" parent="ShapeAppearance.MaterialComponents.SmallComponent">
|
||||||
<item name="cornerFamily">rounded</item>
|
<item name="cornerFamily">rounded</item>
|
||||||
<item name="cornerSize">20dp</item>
|
<item name="cornerSize">8dp</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<!-- General: dialogs -->
|
||||||
<style name="Zcash.ShapeAppearance.MediumComponent" parent="ShapeAppearance.MaterialComponents.MediumComponent">
|
<style name="Zcash.ShapeAppearance.MediumComponent" parent="ShapeAppearance.MaterialComponents.MediumComponent">
|
||||||
<item name="cornerFamily">rounded</item>
|
<item name="cornerFamily">rounded</item>
|
||||||
<item name="cornerSize">24dp</item>
|
<item name="cornerSize">12dp</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<!-- Component -->
|
||||||
<style name="Zcash.ShapeAppearance.TextInputLayout" parent="ShapeAppearance.MaterialComponents.SmallComponent">
|
<style name="Zcash.ShapeAppearance.TextInputLayout" parent="ShapeAppearance.MaterialComponents.SmallComponent">
|
||||||
<item name="cornerFamily">rounded</item>
|
<item name="cornerFamily">rounded</item>
|
||||||
<item name="cornerSize">8dp</item>
|
<item name="cornerSize">0dp</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<!-- Theme Overlays -->
|
<!-- Theme Overlays -->
|
||||||
|
|
Loading…
Reference in New Issue