-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if i want change empty text later , how ? #4
Comments
If you are using ListView, you can do like this: ((TEmptyView)listView.getEmptyView()).setEmptyText("New Text") |
if i use recyclerView |
i think no way |
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
if i want change empty text later , how ?
The text was updated successfully, but these errors were encountered: