On Sat, Jul 16, 2011 at 7:23 AM, Jim Graham <[email protected]> wrote: > Ok, no answers to how to get smoothScrollToPosition to land on > top of the display, not the bottom, so I'm guessing I'm stuck > there. So, is there any way that I can use, say, a bright yellow > background to highlight the target range? In other words, make > it more visible so it's at least obvious that the user's choice > (brand A) is on-screen? > > Put another way: I have a ListView with entries from 0---297 (+/- 1). > A search for a particular brand's malt leads to position 42, and > that company's products range from positions 42---55. Can I > change the background (or foreground) color for positions 42--55, > while leaving the rest of the ListView its default bg/fg colors?
IMHO, messing with backgrounds and ListViews is problematic. Bear in mind that some people use pointing devices to navigate Android applications. Trying to get the selection bar and your custom backgrounds to work well together will be challenging. For indicating a range tied to a search, I'd consider putting a marker in the row itself (e.g., a 4dip-wide View on the left that normally is transparent but turns green when it is part of the search result). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

