1

I have this textview

<TextView
android:id="@+id/time1"
android:layout_height="1dp"
android:layout_width="wrap_content"
android:text="text" >

how can increase the height of textview from 1dp to 50dp by animation(translate) using java code

thank you all

1 Answers1

0
ValueAnimator animation = ObjectAnimator.ofFloat(myTextView, "scaleY", 2.0f);
animation.setDuration(1000);
animation.start();
Max77
  • 1,466
  • 13
  • 19