I was researching all over the web to no avail. My app requires a floating toolbar which appears above a selected text because the default text selection controls are not accessible in a particular case and they also show up oddly in my activity with a translucent status bar and without an action bar. I found this from Google's design guidelines (More precisely from here) and there is no mention on how to do it.
If someone knows how to make this, or is familiar with a library capable of such, I'd be very much grateful.
答案 0 :(得分:3)
如果您使用的是Android支持库修订版22.2,请注意浮动工具栏不向后兼容,默认情况下appcompat会控制ActionMode对象。
所以这只适用于您可以通过创建AVD M预览模拟器进行测试的Android-M预览。
此链接显示Behavior change