I am creating a android project. I have a recyclerview and a button below it. I want to change my button text based on how many items are on the recyclerview.Any help will be appreciated.
I am creating a android project. I have a recyclerview and a button below it. I want to change my button text based on how many items are on the recyclerview.Any help will be appreciated.
Before you set the Adapter of your recyclerView, get the size of your Arraylist, then pass it has a text inyour button after parsing it to a string. It should work for you