INNER CODE UNIT · Java
afterTextChanged
junixapp/XPopup · app/src/main/java/com/lxj/xpopupdemo/DemoActivity.java:74
public void afterTextChanged(Editable s) {
if(s.toString().isEmpty()){
attachPopup.dismiss();
return;
}
if(attachPopup.isDismiss()){
attachPopup.show();
}
}
});
initData();
}
private void initData() {
//recyclerView.setLayoutManager(new LinearLayoutManager(this));
recyclerView.setAdapter(new ImageViewerDemo.ImageAdapter());
showFragment();