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.
我在android中使用自定义ListView来显示一些数据......默认情况下,我将ListView的大小设置为25。我希望当用户在listView的底部向下滑动时,除了显示另外25个视图上一个(列表现在应该显示 50 个元素)
如何实现?
尝试使用这个
ListView lv = (ListView)findViewById(R.id.list_view); lv.setOnScrollListener(new OnScrollListener() { @Override public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { //load more content } });