Android Question Context Menu, how avoid push layout

bernardR

Member
Licensed User
Longtime User
On some devices, the context Menu for select text is a bar on top screen; if the activity not includes title, the layout is pushed.
Is it possible to avoid this 'push' ?
 

bernardR

Member
Licensed User
Longtime User
I have try this:

B4X:
#If JAVA
import android.view.*;
public void _onCreate() {
    getWindow().requestFeature(Window.FEATURE_ACTION_MODE_OVERLAY);
}
#End IF

This works on my device Lenovo. Is it correct for others devices ?
 
Last edited:
Upvote 0
Top