I have two layouts in the same xml file(top layout and bottom bottom layout). I want the user to be able to grab the edge of that separates them and be able to move it up or down sizing the layouts accordingly. Kinda like a sliding door but it starts from the middle and can go top or bottom to where the touch is released
How do you say I can do this? Can I implement an on touch listener on the edge of layout or is there a better way?
Thank you
I have two layouts in the same xml file(top layout and bottom bottom layout).
Share
The way that I would do this is to have a View between the two Layouts. The Layouts would have as an example:
You would then have a touch listener on the middle View, which would alter the weighting for the two layouts. The floats must add up to 1, and doing so will make the draggable View move as well.