开发者

android customize list view prepends results

开发者 https://www.devze.com 2023-01-02 12:16 出处:网络
I am using list view using \"ArrayAdapter\" to display n开发者_如何学JAVAumber of items while user is looking at results when user click on load button i want results to load and prepends(add in the b

I am using list view using "ArrayAdapter" to display n开发者_如何学JAVAumber of items while user is looking at results when user click on load button i want results to load and prepends(add in the beginning)


Found solution

use adapter's insert method and add it to position 0 every time and also before adding reverse order so that first item will display at the beginning if don't reverse first item will display at end.

0

精彩评论

暂无评论...
验证码 换一张
取 消