Hello!

Tell me, please, how the Google team implemented such a thing:

alt text

alt text

What element is placed under the picture, which has higher priority than the click on the item? I tried to place the button and checkbox in the item, but then you simply cannot click on the item.

    1 answer 1

    When you click on the list item, they use Action Mode , which by the way is already in the support library. It accordingly has a number of callbacks that can be handled in any way: show the contextual action bar, count the number of pressed elements, substitute another view, etc. For the list, call setChoiceMode (ListView.CHOICE_MODE_MULTIPLE).

    In fact, a curious thing, read the examples.

    • @DroidAlex Thank you! I think this is what you need! - Opalosolo
    • Please :) - DroidAlex