The below code is to find the view on the first position. How do I find the view on the last position?
TextView textView =
(TextView)myRecyclerView.findViewHo
try this
TextView textView =(TextView)myRecyclerView.findViewHolderForAdapterPosition(mFirebaseAdapter.getItemCount()-1).itemView.findViewById(R.id.myTV);
try this
TextView textView = (TextView) myRecyclerView.findViewHolderForAdapterPosition(arraylist.size()-1).itemView.findViewById(R.id.myTV);
or try this
simply you can do this:
if(position == YouList.size()-1)
{
/*lastItem*/
}
TextView textView =(TextView)myRecyclerView.findViewHolderForAdapterPosition(Arraylist.size()-1).itemView.findViewById(R.id.myTV);
You can try this
TextView textView = (TextView) myRecyclerView.findViewHolderForAdapterPosition(myRecyclerView.getAdapter().getItemCount() - 1).itemView.findViewById(R.id.myTV);