show last item in recyclerview after click .smoothScrollToPosition(adapter.getItemCount() - 1)
does not work correctly
CodePudding user response:
After setAdapter()
or inside onClick
function write this code :
recyclerView.scrollToPosition(data.size() - 1);
recyclerView
: is your RecyclerView object
data
: your ArrayList