View com.example.listviewtest.
FruitAdapter.getView(int position,
View convertView,
ViewGroup parent)
@
Override
Get a View that displays the data at the specified position in the data set. You can either create a View manually or inflate it from an XML layout file. When the View is inflated, the parent View (GridView, ListView...) will apply default layout parameters unless you use android.view.LayoutInflater.inflate(int, android.view.ViewGroup, boolean)
to specify a root view and to prevent attachment to the root.
Overrides:
getView(...) in
ArrayAdapter
getViewTypeCount()
and
getItemViewType(int)
).