Skip to content Skip to sidebar Skip to footer

Alertdialog With Single Choice List - I Need Some Items Nonclickable

I have AlertDialog with single choice list. I want to put some 'fake' items inside - like labels of following items. I'm using different layout for regular item and for 'label' ite

Solution 1:

The answer is so simple! Just put this to adapter code:

public boolean isEnabled(int position)
    {
        //return super.isEnabled(position);return (m_data.get(position).BaseElementType != ElementType.Divider);
    }

Now some items become non clickable :)

Post a Comment for "Alertdialog With Single Choice List - I Need Some Items Nonclickable"