Hi
I have a layout which contains a ListView. Each View (row) in this ListView is a LinearLayout which contains 3 Views - CheckBox, ImageView and a TextView (Horizontal)
My problem is like this - if I use the trackball to highlight a row in the ListView , it works (row's background color is Orange). By clicking on the trackball when a row is highlighted, I switch the current displayed layout to another one (setContentView()). Now, if re-displays the original layout with the ListView (I store its instance for re-displaying it, it is not being re-created!), the highlighted row is NOT highlighted anymore. According to google this is OK, and the highlight will come back as soon as I'll use the trackball.
The real problem is that even if I use the trackball to move up or down in the list now, no other row in the ListView becomes highlighted. Instead, in each row which should be highlighted as a result of the scrolling, the TextView becomes selected and I know that since I set the TextView to be ticking (TruncateAt.MARQUEE).
ONLY if I CLICK the trackball, then the highlight comes back to the row which its TextView is ticking at the moment.
I've tried to solve this problem by setting the TextView as not focusable, not clickable, and disabled. I even tried to set setItemsCanFocus(false) on the ListView - still with no success.
Please help me...
Thank you!