Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Floating toolbar with text selection controls

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.

Floating Toolbar

If someone knows how to make this, or is familiar with a library capable of such, I'd be very much grateful.

like image 638
Ben Faingold Avatar asked May 12 '15 23:05

Ben Faingold


1 Answers

If you are using Android Support Library revision 22.2, be aware that floating toolbars are not backward-compatible and appcompat takes control over ActionMode objects by default.

so this will only work on Android-M preview you can test by creating AVD M-preview emulator.

Here this link shows Behavior change

like image 154
pooriyam mukkodi Avatar answered Nov 14 '22 23:11

pooriyam mukkodi