Materialdrawer: By default first item is selected, though the item was created `withSelectable(false)`

Created on 11 May 2016  路  1Comment  路  Source: mikepenz/MaterialDrawer

If one does not calls result.setSelection explicitly, (referring to this), by default the first item is being selected though it was created with .withSelectable(false), is it a bug or I am using it wrong?

question

Most helpful comment

@rupeshsasne it is no bug. Programmatically you can still select each item in the list. withSelectable(false) will just prevent the user from selecting this item via a click.

You should have a look here:
https://github.com/mikepenz/MaterialDrawer#how-can-i-create-a-drawer-without-a-default-selection
(You can also just define a different selection)

>All comments

@rupeshsasne it is no bug. Programmatically you can still select each item in the list. withSelectable(false) will just prevent the user from selecting this item via a click.

You should have a look here:
https://github.com/mikepenz/MaterialDrawer#how-can-i-create-a-drawer-without-a-default-selection
(You can also just define a different selection)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

y2kshane picture y2kshane  路  4Comments

fuentepa picture fuentepa  路  3Comments

armoun picture armoun  路  3Comments

AlexMercier picture AlexMercier  路  3Comments

Ahmed-Emad picture Ahmed-Emad  路  4Comments