I have a ListView that uses a customized adapter, but I can\'t click on the ListView Item ..
Activity for list view ..
package com.adham
I was using a view and button inside the list view so I have used:
android:focusable="false"
for and ...
After that I used following code for my list view and it worked
// Attach the adapter to a ListView
ListView listView = (ListView) findViewById(R.id.shipping_item_list);
listView.setAdapter(adapter);
listView.setOnItemClickListener(listPairedClickItem);
private AdapterView.OnItemClickListener listPairedClickItem = new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView> arg0, View arg1, int arg2, long arg3) {
Toast.makeText(getBaseContext(), "Item ", Toast.LENGTH_LONG).show();
}
};