Skip to content

ContactRecyclerAdapter

stardust edited this page Feb 20, 2023 · 1 revision

ContactRecyclerAdapter

The ContactRecyclerAdapter class manages the RecyclerView for the ContactActivity class.

Constructor

Parameters:

  • ArrayList<ContactItems> contactItems

onCreateViewHolder

Sets the view.

Parameters:

  • ViewGroup parent
  • int viewType

Return value:

  • ContactRecyclerAdapter.MyViewHolder
    • The view holder

onBindViewHolder

Sets the information for the contact items.

Parameters:

  • ContactRecyclerAdapter.MyViewHolder holder
  • int position

Return value:

  • none

getItemCount

Returns the size of contactItems

Parameters:

  • none

Return value:

  • none