1

FragmentList View을 구현하고 싶습니다. 목록의 크기는 왼쪽에 이미지가 포함 된 1000 개가 넘을 수 있으며 이름과 유형이 옳습니다. CustomArrayAdapter 및 목록보기를 구현할 수 있지만 특정 수의 항목 또는 표시된 항목 만로드하는 방법을 모르겠습니다. 나는 사용자 scroll down가 그 때 서버를 명중하고 심상 및 자료를 적재하는 경우에 그것을 원한다.조각의 끝이없는 목록보기

이 종류의 List View은 어떻게 Fragment에 구현할 수 있습니까?

나는 andorid에 대해 많이 모른다. 이 문제를 해결하기 위해 나를 도우십시오. 사전에

감사

+0

내 질문에 대한 투표가 왜 실패했는지 알 수 없습니다. – user3154663

+0

사용해보기 : http://stackoverflow.com/questions/5967994/how-to-populate-a-listview-asynchronously,이 _Making ListView Smooth_ : http://developer.android.com/training/improving-layouts/ smooth-scrolling.html 및이 _Loading Views On Demand_ : http : //developer.android.com/training/improving-layouts/loading-ondemand.html – elbaulp

+0

당신은이 – Meenal

답변

1

는 이러한 풀 사용에 더 많은 데이터를로드 할 경우 풀은

https://github.com/johannilsson/android-pulltorefresh

https://github.com/chrisbanes/ActionBar-PullToRefresh

How to implement Android Pull-to-Refresh

를 새로 이러한 링크를 참조하십시오 링크

int lastItem = listView.getLastVisiblePosition(); 

int firstItem = listView.getFirstVisiblePosition(); 

당신이 할 수있는 것은 (서버에서 데이터의 적절한 배치를로드입니다 말 :

https://github.com/shontauro/android-pulltorefresh-and-loadmore

http://www.appance.com/android-pull-to-refresh-and-loadmore/

0

목록보기 클래스는 처리하는 유용한 방법 중 몇 가지가 있습니다 100 항목), listview의 onScoll() 메소드를 오버라이드하여 시간 경과에 따른 값을 추적하고, 사용자가 일괄 처리의 끝 부분 (예 : 위치 100)에 도착하면 다음 배치를로드하고 목록에 장이 있다는 것을 어댑터에 알린다. 에드.