[英]Increase height of textview in android
我有這個textview
<TextView
android:id="@+id/time1"
android:layout_height="1dp"
android:layout_width="wrap_content"
android:text="text" >
如何使用Java代碼通過animation(translate)將textview的高度從1dp增加到50dp
謝謝你們
ValueAnimator animation = ObjectAnimator.ofFloat(myTextView, "scaleY", 2.0f);
animation.setDuration(1000);
animation.start();
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.