Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Aha! And commonsguy said it wasn't supposed to work this way!

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
85 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Oct 14, 2011

I'm using cwac-touchlist to provide drag-and-drop reordering of buffered updates.
https://github.com/commonsguy/cwac-touchlist

I was having trouble with expanding a space to drop into. Commonsguy just told me on twitter that it wasn't supposed to work that way. BUT IT CAN BE DONE!

The trick is to make your listitem.xml a fixed height, say 100dip, and importantly set the gravity to "bottom"

Secondly, set your TouchListView with a tlv:normal_height and a tlv:expanded_height of DOUBLE the normal height.

It works by expanding the one you're hovering over. With the gravity set to bottom, and the expanded height double, it gives the impression of a space to drop into.

You're welcome! :)

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (0)

Sign In or Sign Up now to post a comment!
Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more