Code example for AbsListView

Methods: setOnItemClickListener

0
 
    @Override 
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setLayoutView(); 
        listView.setOnItemClickListener(new OnItemClickListener() {
            @Override 
            public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {
                AdapterActivity.this.onItemClick(adapterView, view, position, id);
            } 
        }); 
    } 
 
    public class Adapter extends SimpleAdapter{
 
        public Adapter(Context context) {
            super(context, null, 0, null, null);
        } 
 
        @Override 
        public int getCount() {