android - Change default onListItemClick Behavior of ListView -


Is there any way that I can highlight the list item (rather list view) when I clicked it Goes ( pressed ) on? The default behavior (highlighting ... and Highlights) highlights items for just one moment, and it fade slowly to black ...

Currently, the highlight only This happens only when we use the DPD ...

This would be ideal if at least one inventory item is "highlighted" at all times.

The worst case scenario, I may have to keep track of "last clicked item" by default) first and replace its background or something ... but I was hoping That was an easy way ...

Thanks in advance thanks! :)

This is not a good UI practice on Android; Items should not be focused, nor should they focus, on touch, on touch. You want to use the list item with the radio box. Other, beautiful solutions can also be & mdash; If you discuss the matter of your use, then I will be happy in the brain.


Update : In view of the new context in your comment (forward / reply / etc.), here are some other options:

< Ol>
  • Use the standard context menu, long-pressed trigger on the list item.
  • New Quick Actions [1] The pattern shown in Twitter for the Android app.
  • In either case, you can use on-screen interactive usage to increase relevant actions similar to the circular; 'Button inside each tweet in twitter app If you want to know more seekers.

    Now, if you are planning to support multi-item contextual actions, the second option is to use the checkbox + slide-up action-panel UI pattern which uses Gmail.

    [1] Quick Actions UI Pattern, as discussed in the Google I / O 2010 session (see in Slide 16), note that although the quick action code is currently available If Android is not in SDK, then Twitter will be open-source for Android so that the code can be used in your app.


    Comments