I have a customized ListView. Each row has an EditText, Buttons & TextView. In order to make the ListView items clickable I have kept
you do like this:
first set in your listview's android:focusable="false";
then you want row to be clicked: for this in your customAdapter you should do like this
v.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
Toast.makeText(context, "Hello world",2000).show();
}
});
It will work.
By default, your items should now have the click option, when you made android:focusable="false" in listview.
No need to use descendantFocusability in listview.