Your experience on this site will be improved by allowing cookies
Recyclerview IS Empty
You should use RecyclerView in a situation where you want to show a lot of items, and the number of them is dynamic.
ListView should only be used when the number of items is always the same and is limited to the screen size.
if (recyclerview.getItemCount() == 0) { Toast.makeText(getActivity(), "No records to show!", Toast.LENGTH_SHORT).show(); } |
0 comments