Update button text based on recyclerview item count

Viewed 29

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.

1 Answers

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

Related