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.
縦向きのタブレットでアプリをテストしています。合計で 50 行を超える ListView があり、画面に一度に少なくとも 20 行が表示されます。
しかし、何らかの理由でメソッドを使用すると、listView.getChildCount返されて返さ9れlistView.getLastVisiblePosition()ます8。これらの値は確かに小さすぎます - 一度に少なくとも 20 行が表示されることを覚えておいてください。どうすればこれを解決できますか?
listView.getChildCount
9
listView.getLastVisiblePosition()
8