ネガを適用するtoXDelta
とTranslateAnimation
、リストにスクロールするとバグが発生します。これは、このリストに別のリストがあるためです。
このスクリーンキャプチャで私の問題を見ることができます
オレンジ リストの XML は次のとおりです。
<LinearLayout
android:id="@+id/ll_list_ghm"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:background="@drawable/panel_ghm"
android:orientation="vertical"
android:paddingLeft="30dip"
android:paddingRight="20dip"
android:paddingTop="40dip" >
<ListView
android:id="@+id/lv_list_ghm"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
</ListView>
</LinearLayout>
そして、私は翻訳を適用しますLinearLayout
ll_list_ghm.startAnimation(expend(500, true));
private Animation expend(int anim_ms, boolean is_ghm) {
Animation collapse = new TranslateAnimation(400, -20, 0, 0);
collapse.setDuration(anim_ms);
collapse.setFillAfter(true);
return collapse;
}
toXDelta
が 0 または正の整数に等しい場合、問題はありません。誰でもこのバグを経験したことがありますか?
maの問題について読んでくれてありがとう。