In following list, when I click any item which has width equal to 2 lines (in below eg, CNX SMALLCAP), item gets highlighted appropriately.
Problem comes when I click any item which has width equal to 1 line (in below eg, ICICI BANK), then along with the clicked item half of the above and below item is also getting highlighted.
Highlighting is always using width=2 lines.
What can be done to remove this?
I tried using clearFocus()
and clearAnimation()
inside onListItemClick()
, but no luck.
ANY HELP WILL BE LIFE-SAVER !!!
Since you have two lines, focusing both the lines when you have some content makes sense. Hence make the line which you are not using invisible or gone. You can also create separate custom adapter for your listview with single line.