Question

I want to add a dropdown menu in ActionMode which looks like the one in Android's official Gallery app, it allows you to 'select all' or 'deselect all' images. As seen in the picture below: enter image description here

The only way I found is using custom view by calling setCustomView and doing all the other stuffs by myself. But I believe there must be some native method to enable this feature, can any one give any ideas?

Was it helpful?

Solution

Well, I got it finally. The drop down menu is added by calling setCustomView, it replaced the default TextView.

I thought that method would replace the whole ActionMode view, what a low-level mistake.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top