androidgridviewontouchlistenerzoominggestures

Extend View on single side touch of GridView item Height and Width


I need Help to extend layout ontouchlistener. Like Android Studio, where we can expand logcat(Android Monitor) view increase and decrease with point on it. I want same on app, If I expand height of view then below layout should decrease in size and when I touch to above and below view should increase in size, same as right to left and left to right view on run time. Please give your suggestions.

What exactly i want is like this. Kindly please check this link and let me know if it is possible then how ? Else suggest me that how to do this type of UI in android


Solution

  • I have not much more knowledge about this kind of view creation and resize that view. But If you want to resize any view in single screen as per that video then you have create custom view extend with LinearLayout. Please check this project that help you that how to resize the view?

    For drag from one position to another position read this tutorial. With LinearLayout use this lib

    If you want to Supporting Multiple Screens please refer this Google developer documentation.