Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sigma1326 committed Mar 11, 2019
1 parent fabb7cf commit 9c45cd2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ public Rotate3dAnimation(Context context, AttributeSet attrs) {
mFromDegrees = a.getFloat(R.styleable.Rotate3dAnimation_fromDeg, 0.0f);
mToDegrees = a.getFloat(R.styleable.Rotate3dAnimation_toDeg, 0.0f);
mRollType = a.getInt(R.styleable.Rotate3dAnimation_rollType, ROLL_BY_X);
Description d = parseValue(a.peekValue(R.styleable.Rotate3dAnimation_pivotX));
Description d = parseValue(a.peekValue(R.styleable.Rotate3dAnimation_myPivotX));
mPivotXType = d.type;
mPivotXValue = d.value;

d = parseValue(a.peekValue(R.styleable.Rotate3dAnimation_pivotY));
d = parseValue(a.peekValue(R.styleable.Rotate3dAnimation_myPivotY));
mPivotYType = d.type;
mPivotYValue = d.value;

Expand Down
4 changes: 2 additions & 2 deletions sweetalertdialog/src/main/res/anim/error_frame_in.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
sweet:rollType="x"
sweet:fromDeg="100"
sweet:toDeg="0"
sweet:pivotX="50%"
sweet:pivotY="50%"
sweet:myPivotX="50%"
sweet:myPivotY="50%"
android:duration="400"/>
</set>
4 changes: 2 additions & 2 deletions sweetalertdialog/src/main/res/values/attrs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
</attr>
<attr name="fromDeg" format="float" />
<attr name="toDeg" format="float" />
<attr name="pivotX" format="fraction" />
<attr name="pivotY" format="fraction" />
<attr name="myPivotX" format="fraction" />
<attr name="myPivotY" format="fraction" />
</declare-styleable>

<declare-styleable name="ProgressWheel">
Expand Down

0 comments on commit 9c45cd2

Please sign in to comment.