android - How update a view without refresh all view? -


example: using listview, 10 items database , show on view. when user scroll down , click in button, wanna bring database , show 10 more items. don't wanna refresh whole view, add 10 more.

i using cursor , adapter listview, so, when swap cursor new data, adapter fill listview refreshing items.

i'm looking tutorial, class or idea make that.

listview old class added way @ start in api level 1. adapters use listview have notifydatasetchanged() refreshing data displayed.

google aware of limitation , on year ago released recyclerview, more advanced , flexible replacement listview.
recyclerview.adapter class has many more methods such as;
notifyitemrangeinserted(int positionstart, int itemcount)
ideal method situation here.

using support library recyclerview give compatibility right api 7 (android 2.1 eclair).


Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -