adspace
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