Skip to content

Commit 99be59c

Browse files
Update VSpotView2.java
1 parent 619062c commit 99be59c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

library/src/main/java/com/developer/spoti/vspoti/VSpotView2.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,19 @@ private void drawArrowToTarget(Canvas canvas) {
168168
canvas.drawPath(arrowPath, arrowPaint);
169169
}
170170

171+
private void showMessageWithAnimation() {
172+
mMessageView.setAlpha(0f);
173+
mMessageView.setScaleX(0.8f);
174+
mMessageView.setScaleY(0.8f);
175+
176+
mMessageView.animate()
177+
.alpha(1f)
178+
.scaleX(1f)
179+
.scaleY(1f)
180+
.setDuration(300)
181+
.setInterpolator(new android.view.animation.DecelerateInterpolator())
182+
.start();
183+
}
171184

172185
public void nextTarget() {
173186
if (currentTargetIndex < targetViews.size() - 1) {

0 commit comments

Comments
 (0)