android - Checked state for icon is wrong in NavigationView after closing and opening drawer -


i have tried implementing new navigationview android support design library. app consists of a drawerlayout fragment holding navigationview. simple menu icons.

  1. i'm starting app no items checked.

  2. i click on item item gets checked, , both text , icon shows checked state:

  3. i open , close drawer swiping. happens text selected item shows selected state, icon not. on other hand item above has icon showing checked state.

is bug or have done wrong?

i project app screenshots can viewed here:

https://bitbucket.org/adirdal/navigationviewtest

solution put navigationview directly drawerlayout, not inside fragment.


Comments