if i want change empty text later , how ?
Opened this issue · 4 comments
mahmooddagga commented
if i want change empty text later , how ?
barryhappy commented
If you are using ListView, you can do like this:
((TEmptyView)listView.getEmptyView()).setEmptyText("New Text")
mahmooddagga commented
if i use recyclerView
mahmooddagga commented
i think no way
barryhappy commented
I know it's not so elegant, but work……o(╯□╰)o
try {
((TextView) (((ViewGroup) recyclerView.getParent()).findViewById(R.id.t_emptyTextView)))
.setText("NewText".concat(String.valueOf(++count)));
}catch (Exception e){
e.printStackTrace();
}
I will try to provide a better solution next version.