adspace


how to write a custom adapter in android?

Answer Posted / Sachin Kumar Singh

To write a custom adapter in Android, create a class that extends BaseAdapter or RecyclerView.Adapter. Override the required methods (getCount(), getItem(), getItemId(), and getView()) to implement the desired behavior for your data source. In each getView() implementation, inflate the relevant layout and bind the data to the appropriate views.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What all devices have you worked on?

1058


Which is the latest version of android?

1085


Which is the latest version of android os?

1045


What did you like better, ice cream sandwich or kitkat?

977