INNER CODE UNIT · Java

onSelect

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

                    public void onSelect(int position, String text) {
                        Toast.makeText(XPopupApp.context, text, Toast.LENGTH_LONG).show();
                    }
                });
        editText.addTextChangedListener(new TextWatcher() {
            @Override
            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();
                }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…