Actually maybe this is just a state issue - I've set my LinearLayout to have a background like this:
Drawable pressed = getContext().getResources().getDrawable (android.R.drawable.list_selector_background); StateListDrawable bg = new StateListDrawable(); bg.addState(View.PRESSED_ENABLED_STATE_SET, pressed); setBackgroundDrawable(bg); is there some other set of flags I should be using instead, which differentiates between 'really' being pressed, and just pressed for scrolling? Thanks On Nov 9, 10:45 am, Mark Wyszomierski <[email protected]> wrote: > Hi, > > Is there a way to make highlighting of a row in a listview delayed if > the user is simply scrolling the list with their finger? > > To clarify, when the user puts their finger down to scroll, the > intersected row (if any) gets highlighted for a short moment, before > it realizes the user is just trying to scroll (then the highlight > turns off). > > It seems like the timeout is too short - iPhone has the same behavior, > just seems that the timeout is longer to discern between a real row- > select-touch, and just a scroll-touch. Any way to tweak this? You can > see the behavior in any of the system apps that have lists, > > Thanks -- 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

