CheckedTextView Bug?


Last Updated:

  1. Dorin

    Dorin New Member This Topic's Starter

    Joined:
    Jun 15, 2010
    Messages:
    1
    Likes Received:
    0
    Hi,

    I am using the multiple choice selection for a list view in android.

    The problem is: the checked items returned by the
    getListView().getCheckedItemPositions(); call do not work, i.e. the first call is correct but subsequent calls for a set of items that has previously selected items UNSELECTED are returned with all the original selectrions together with the new ones.

    More clearly:
    first call: items 1 3 5 selected
    result correct: 1 3 5 positions selected
    second call: items 1 2 5
    result incorrect: 1 2 3 5 positions selected

    Seeing as there is NO documentation for CheckedTextView and relatives there is either something that I am missing, (such as a flush call?) or the implementation is buggy/inconsistent.

    Anybody know what's going on or come accross this?
    Thanks for the help
     

    Advertisement
  2. Boogs

    Boogs Well-Known Member

    Joined:
    Apr 6, 2010
    Messages:
    85
    Likes Received:
    16
    Hmm... I haven't come across that problem. And I've used CheckedTextView a lot in my current Android application. Can you post your code which retrieves the checked boxes? That might help diagnose the problem a little bit.
     

Share This Page

Loading...