Android Listview: a problem with its height when dragging

Sorry for the missing title of the question,

I have a list view that can perform drag and drop. It implements two directions: up and down. In the down direction, I just gave more height (norm 60dp, more height 120dp).

The list item contains a text view and an image. The problem arises when I drag up, I want to transfer the same list height, but instead of the default behavior [list item grows down ....] the list item should go up and have the same height of 120dp.

This is what happens [downward direction]

=========================
TextView


[*this denotes the height is 120dp downwards*]

=========================

This is what I want. [Up]

========================



[*this denotes the height is 120dp upwards*]

TextView
========================

How is this possible?

+3
source share
3 answers

? ? /scrollview . .

0

.

0

You can also get ideas from the implementation of Mark Murphy: cwac-touchlist .

0
source

All Articles