[英]Text field animation in android
有人可以告訴我如何在android中創建動畫效果。 我想要一個TextView
說Name,Age,Sex從左邊移動到屏幕上的特定位置。 例如:例如TextView
從屏幕的左端移動。這些字段垂直排列在線性布局上。
在res / anim /中創建一個新的xml,命名為ltor.xml,內容如下
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false">
<translate android:fromXDelta="-100%" android:toXDelta="0%"
android:fromYDelta="0%" android:toYDelta="0%"
android:duration="700"/>
</set>
在要設置動畫的視圖中提供以下屬性。
android:animation="@anim/ltor"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.