I\'m coding a custom adapter for a ListView that has a custom list to it.
obviously, I have to write the getView function. so here is my code:
getView
Try this
vi = LayoutInflater.from(mActivity).inflate(R.layout.result_list_item, null);
if mActivity is your Activity context passed from the activity where you are creating the object of this adapter.