android editview与popwindow焦点冲突

可以重写dismiss方法,禁掉父类dismiss:

package com.example.demo;import android.widget.PopupWindow;/** * @author Huang xudong * @date 2020/7/26 */public class EditViewPopwindow extends PopupWindow {    @Override    public void dismiss() {    }    public void dismiss(boolean b){        super.dismiss();    }}

还可以自定义framlayout ,然后addView,这样就不是popwindow弹窗了,焦点不会冲突