开发者

Android - CursorAdapter with AlphabetIndexer

开发者 https://www.devze.com 2023-03-07 00:06 出处:网络
I\'m using a CursorAdapater for my ListView, and I also want to use an AlphabetIndexer with sections The issue is when I scroll ths ListView, there is a kind of overflow because of sections : if I ha

I'm using a CursorAdapater for my ListView, and I also want to use an AlphabetIndexer with sections

The issue is when I scroll ths ListView, there is a kind of overflow because of sections : if I have 20 rows in the cursor and 4 sections, the cursor try to go to position 21, 22 etc, wich create an IllegalStateException.

Does anyone have an idea to correct this ?

I really need a CursorAdapater to custom my v开发者_StackOverflow社区iew and have a directe access to my data (things that dont seem to be available with SimpleCursorAdapator or ArrayAdapter)

Thanks

0

精彩评论

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