how to write a custom adapter in android?



how to write a custom adapter in android?..

Answer / 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

More Android OS Interview Questions

What are the different storage methods in android?

1 Answers  


What is decision structure?

1 Answers  


What is a buildtype in gradle?

1 Answers  


Describe the capabilities of ddms?

1 Answers  


What options do the users get to save data in android?

1 Answers  


Is android 4.0 still supported?

1 Answers  


What are different data storage options are available in android?

1 Answers  


How can I update my android device?

1 Answers  


Which are location provider in android ?

1 Answers  


What is android runtime?

1 Answers  


State few disadvantages of android in the mobile market.

1 Answers  


What is needed to make multiple choice list with custom view for each row?

1 Answers  


Categories