Why my EditText copy/paste menu is under the EditText? How change the z-order of popup window?

后端 未结 4 1651
孤独总比滥情好
孤独总比滥情好 2021-02-07 10:45

NOTE

If someone know how to order (z-order) Windows added via windowmanager, i will also accept the answer because it\'s will answer al

4条回答
  •  醉酒成梦
    2021-02-07 11:06

    This is expected, if you see the documentation of DecorView, It give you the background of current view.

    What you are doing is starting the action bar on the decorview, hence its coming in background. Read this article for more detail http://www.curious-creature.com/2009/03/04/speed-up-your-android-ui/

    To solve this issue, you need to get the current view, for which you may use View focusedView = (View) yourParentView.getFocusedChild();

提交回复
热议问题