Users Adapter
class UsersAdapter(users: List<User>, userListener: UserListener) : RecyclerView.Adapter<UsersAdapter.UserViewHolder>
Author
Alper Sahin An adapter class for populating a RecyclerView with a list of User objects.
Parameters
users
The list of users to display in the RecyclerView.
user Listener
The listener to handle user item click events.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Updates the adapter's data with a filtered list of users and notifies the RecyclerView of the change.
Link copied to clipboard
Returns the number of items in the adapter's data set.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onBindViewHolder(@NonNull p0: UsersAdapter.UserViewHolder, p1: Int, @NonNull p2: MutableList<Any>)
Binds data to a UserViewHolder at the specified position.
Link copied to clipboard
Creates and returns a new UserViewHolder instance for the RecyclerView.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard