开发者

Android: How to figure out the *original* position of item in Adapter after filter has been applied

开发者 https://www.devze.com 2023-02-18 17:59 出处:网络
After a filter is applied to a开发者_开发问答n Adapter containing Strings, the \"position\" variable doesn\'t refer to the position number it was originally in before the text filter was applied.

After a filter is applied to a开发者_开发问答n Adapter containing Strings, the "position" variable doesn't refer to the position number it was originally in before the text filter was applied.

Is there a way get the original position of the item before the text filter was applied?


Well, it might not be the most excellent solution ever but, you could copy your Array and get the positions from that one as original.

0

精彩评论

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

关注公众号