0
夥計們我做了一個自定義列表視圖,列表視圖有三個文本字段。當用戶從剛剛填充文本視圖的活動中按下後退按鈕時,我想要繼續工作,然後返回到包含定製列表視圖的活動。最近剛剛進入的項目已經出現在那裏。我想進入,從右側的每用戶進入到列表時刷卡查看activity.here的列表視圖XML代碼:爲什麼我的ListView沒有得到動畫?
<LinearLayout
android:id="@+id/listHolder"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:background="#ffffff" >
<ListView
android:id="@+id/mylist"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
</ListView>
</LinearLayout>
這裏列表視圖實際上是不利用完整空間爲100dp的屏幕尺寸由其他一些小部件拍攝(但這並不重要)。我現在用的動畫是這樣的:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false" >
<scale
android:duration="1500"
android:fillAfter="false"
android:fromXScale="480dp"
android:fromYScale="0dp"
android:interpolator="@android:anim/overshoot_interpolator"
android:pivotX="60"
android:pivotY="10"
android:toXScale="100dp"
android:toYScale="0dp" />
</set>
什麼是錯的aniamtion XML?我是否爲x和y值設置了錯誤的參數? 我得到的是,列表視圖是在用戶轉到該活動後的第二秒或更晚的時間。我的意思是沒有從右向左的過渡。任何想法爲什麼發生這種情況。謝謝。
謝謝凱拉什它完全工作。感謝您的幫助。 – Sam
歡迎您@Sam –