【问题标题】:Application with a lot of images that could be dragged around具有大量可以拖动的图像的应用程序
【发布时间】:2015-04-14 10:11:48
【问题描述】:

我正在创建一个应用程序,它基本上可以从应用程序的图库中选择一组图像,将其放在屏幕上,然后调整大小、移动拖动或图像上的任何内容。

我应该在 ImageViews 上使用带有 ImageViews 和 OnTouchListener 的简单 FrameLayout/RelativeLayout,还是应该使用画布并手动处理?有人可以在这里告诉我一些方向吗?

【问题讨论】:

    标签: android ontouchlistener


    【解决方案1】:

    利用这个库https://github.com/thuytrinh/android-collage-views

    <com.thuytrinh.android.collageviewsdemo.CollageView
            android:id="@+id/collageView2"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerHorizontal="true"
            android:layout_centerVertical="true"
            android:src="@drawable/green" />
    

    【讨论】:

      猜你喜欢
      • 2010-10-29
      • 2017-04-14
      • 2019-10-17
      • 1970-01-01
      • 1970-01-01
      • 2012-11-07
      • 1970-01-01
      • 2010-10-22
      • 2015-03-16
      相关资源
      最近更新 更多