0
Is there any way to customize a listView
besides the textView
default? The screen is empty obviously, but would like to change the background color only when searching not to display the results.
mEstadoVazioTextView = (TextView) findViewById(R.id.visualizacaoVazia);
listview.setEmptyView(mEstadoVazioTextView);
mEstadoVazioTextView.setText("Nenhum livro encontrado!\n\nFavor verificar ortografia ou" +
" informar algum dado sobre o livro novamente.");
hi, thanks for the help, but the message is already being presented if it does not return any results, I would really like to customize the layout when it returns in this state, I’m using the message in
listView
, for the methodsetEmptyView()
already takes care of that part of the result of the search for emptiness.– Aline Ramos
Blz! So search on Recyclerview you will get what you’re looking for. There are many videos explaining step by step implementation. Explaining here would be very great the post. Good Luck!
– Thiago Melo