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.
のFooterView(またはリストの最後の項目)の位置を取得する必要がありますListView
ListView
試しgetListView().getCount()ましたが、効果がありませんでした。
getListView().getCount()
誰か助けてもらえますか?
前もって感謝します!
あなたの質問は少し曖昧ですが、フッターが1つある場合、これはそのインデックスを取得します。
int position = getListView().getCount() - 1;