public void setEmptyText(int mEmptyText) {
this.mEmptyText = mEmptyText;
inflateEmptyText();
}
private void inflateEmptyText() {
if (mEmptyText != R.string.text_empty) {
if (mEmptyLayout != R.layout.layout_empty) {
throw new RuntimeException("Cannot assign the EmptyText attribute. " +
"You already overridden the entire emptyLayout, no need to specify " +
"custom color or custom text message");
} else {
textEmpty.setText(getResources().getString(R.string.text_empty));
}
}
}
Seems that the text is never set.