Why do we need BaseAdapter in GridView? Why base adapter itself? Can we use some other adapter type?
public class ImageButtonAdapter extends BaseAdapter
{
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use any type of adapter that extends
BaseAdapter, so theImageButtonAdapterin your post would work.The GridView is basically a list that displays its item in a grid, and in Android lists use an
Adapterto get their data. This is why you need the adapter.