Fadol fadol haroun
Fadol fadol haroun

Reputation: 1

What exactly is Parent in getView() method

I guess the "parent" here is the actual listView i put in the activity_main layout...

public View getView(int position, View convertView, ViewGroup parent) {

    View heroListItem = converView;
    if(heroListItem == null)
    {
        heroListItem=LayoutInflater.from(Context).inflate(*a layout*,parent,false)
    }

    //the rest of the code...
}

Upvotes: 0

Views: 202

Answers (0)

Related Questions