Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
リストビュー項目を最初の項目に移動したい。
そのため、リストビューに対してアイテムを (0,0) に移動する必要があります。
私はこのようにxmlでアニメーションを使用します
< translate android:duration="5000" android:fromYDelta="0" android:toYDelta="0%p"/ >
しかし、それは機能しません。
0%pリストビューの始まりを意味するのではありませんか?
0%p
どんな助けでも大歓迎です、ありがとう
リストビューの開始には .setSelection を使用する必要があります。
ListView.setSelection(0);