My list view was working perfectly with normal image...but when I used imageButton, nothing happens when i click on each of the list item...  


import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.TextView;


import java.util.ArrayList;

class Custom_Adapter extends ArrayAdapter {



Custom_Adapter(Context context, ArrayList folder) {
super(context, R.layout.custom_list, folder);

}



@Override
public View getView(int position, View inView, ViewGroup parent) {
LayoutInflater inflater = LayoutInflater.from(getContext());
View customView = inflater.inflate(R.layout.custom_list, parent, false);

String eachItem = getItem(position).toString();
TextView fileName = (TextView) customView.findViewById(R.id.fileName);
ImageButton iconImage = (ImageButton) customView.findViewById(R.id.iconButton);

fileName.setText(eachItem);
iconImage.setImageResource(R.drawable.images);
return customView;

}



}