Skip to content

Instantly share code, notes, and snippets.

View xardox69's full-sized avatar

usman khalid xardox69

  • Reach-Now
  • Hamburg
View GitHub Profile
@rafali
rafali / ResizeAnimation.java
Last active February 26, 2021 13:05
Resize animation on Android
public class ResizeAnimation extends Animation {
final int startWidth;
final int targetWidth;
View view;
public ResizeAnimation(View view, int targetWidth) {
this.view = view;
this.targetWidth = targetWidth;
startWidth = view.getWidth();
}