INNER CODE UNIT · Java

beforeTextChanged

junixapp/XPopup · app/src/main/java/com/lxj/xpopupdemo/DemoActivity.java:70

            public void beforeTextChanged(CharSequence s, int start, int count, int after) { }
            @Override
            public void onTextChanged(CharSequence s, int start, int before, int count) { }
            @Override
            public void afterTextChanged(Editable s) {
                if(s.toString().isEmpty()){
                    attachPopup.dismiss();
                    return;
                }
                if(attachPopup.isDismiss()){
                    attachPopup.show();
                }
            }
        });

        initData();
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…