Focus on EditText in ListView when block descendants (Android)

please Don’t use setOnItemClickListener for item click .. i think that you should be use item view click inside adapter method

convertView.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
                Toast.makeText(context, "click item",Toast.LENGTH_LONG).show();
            }
        });

Remove this from main list item layout

android:descendantFocusability="blocksDescendants" 

Thanks and enjoy this code !

Leave a Comment