android:checkableBehaviour="all" submenu still closes after selection / how to suppress submenu close -


i have actionbar menu this

<item     android:id="@+id/action_select_filter"     android:title="@string/action_filter"     app:showasaction="ifroom|withtext">     <menu>         <group             android:id="@+id/action_select_filters"             android:checkablebehavior="all"              >             <item                 android:id="@+id/action_filter_open"                 android:checkable="true"                 android:title="@string/action_filter_open"                 />                 ...         </group>     </menu> </item> 

i multiple choice filter menu dropping down actionbar. when click 1 of options, submenu closes. stay there until user decided filters wanted switch on, indeed on.

i'm aware of question it's quite old , solution hack. android checkable submenu options

i tried returning false/true onoptionsitemselected(menuitem item).

so how suppress default behaviour?

the idea of menu let user choose should happen - , it.

if have number of checkboxes user can set or unset filters, suggestion follow android design guide:

simply call activity small layout of checkboxes , button save changes.

a less complicated user experience , more stable app (no hacks) on side.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -