Skip to content

Commit

Permalink
Tweaks to password visibility anim.
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbutcher committed Aug 19, 2016
1 parent a12a1d6 commit c08d19d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions app/src/main/java/io/plaidapp/ui/widget/PasswordEntry.java
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ private int getInsetStart() {
return insetStart;
}

/**
* A drawable for animating the switch between a masked and visible password field.
*/
static class MaskMorphDrawable extends Drawable {

private static final char[] PASSWORD_MASK = { '•' };
Expand Down Expand Up @@ -261,7 +264,7 @@ private Animator animateMask(
return anim;
}

public static final Property<MaskMorphDrawable, Float> RADIUS
static final Property<MaskMorphDrawable, Float> RADIUS
= new AnimUtils.FloatProperty<MaskMorphDrawable>("dotRadius") {

@Override
Expand All @@ -275,7 +278,7 @@ public Float get(MaskMorphDrawable drawable) {
}
};

public static final Property<MaskMorphDrawable, Float> OFFSET_Y
static final Property<MaskMorphDrawable, Float> OFFSET_Y
= new AnimUtils.FloatProperty<MaskMorphDrawable>("dotOffsetY") {

@Override
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/drawable/avd_show_password.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
android:propertyName="pathData"
android:valueFrom="@string/path_password_eye_mask_strike_through"
android:valueTo="@string/path_password_eye_mask_visible"
android:duration="260"
android:duration="200"
android:interpolator="@android:interpolator/fast_out_linear_in"
android:valueType="pathType" />

Expand All @@ -75,7 +75,7 @@
android:propertyName="trimPathEnd"
android:valueFrom="1"
android:valueTo="0"
android:duration="260"
android:duration="200"
android:interpolator="@android:interpolator/fast_out_linear_in" />

</aapt:attr>
Expand Down

0 comments on commit c08d19d

Please sign in to comment.