문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top