Inside a list view I have on each row a text which is truncated because it is too long. So I set the setMovementMethod() on the textView in order to make it scrollable. But now the ListView cannot be clicked. How can I solve this problem?
Below is the getView() method from the adapter.
@Override
public View getView(int position, View convertView, final ViewGroup parent) {
final ViewHolder holder;
if (convertView == null) {
convertView = mInflater.inflate(R.layout.list_row, null);
holder = new ViewHolder();
holder.nameLabel = (TextView) convertView.findViewById(R.id.name);
convertView.setTag(holder);
holder.nameLabel.setMovementMethod(ScrollingMovementMethod.getInstance());
} else {
holder = (ViewHolder) convertView.getTag();
}
return convertView;
}