skydoves / PowerMenu

:fire: Powerful and modernized popup menu with fully customizable animations.
Apache License 2.0
1.19k stars 175 forks source link

Can't make multiple items highlighted at the same time #107

Open ChinaFLTV opened 1 year ago

ChinaFLTV commented 1 year ago

I checked the source code and found that the setSelectedPosition method called in the getView method in the MenuListAdapter will clear other items except the first one in the selected state,making the selection settings for other items invalid,thus making only one item in the highlighted state in the same time period,sos >~~<

Expected Behavior:

multiple item are in the highlighted state at the same time period when open the powermenu

ChinaFLTV commented 1 year ago

Now,I adjust the method in the BasicListAdapter by removing the call to the function called setSelectedSection and it achieve previous idea!