【问题标题】:How to make an image draggable inside Imageview?如何在 Imageview 中使图像可拖动?
【发布时间】:2016-11-10 17:19:36
【问题描述】:

这可能吗,有人做过类似的事情吗?我在 ios 应用程序中看到了这种行为并且需要重现它,基本上图像在 X 轴上是全尺寸的,它可以在 Imageview 内通过 Y 轴上下移动,我尝试在没有 FrameLayout 的情况下使用 Imageview 来执行此操作成功时,图像总是被裁剪为相对于其父级(FrameLayout)的 Imageview 的最大尺寸。欢迎任何帮助。

【问题讨论】:

    标签: android image imageview android-framelayout


    【解决方案1】:

    我猜你可以写你自己的类。拦截触摸事件,监控垂直偏移并使用该垂直偏移重绘图像。

    【讨论】:

    • 好主意,会尝试看看结果如何
    猜你喜欢
    • 2014-01-17
    • 1970-01-01
    • 1970-01-01
    • 2013-01-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多