【问题标题】:Dynamically changes the position of ImageView动态改变 ImageView 的位置
【发布时间】:2012-01-06 13:32:34
【问题描述】:

我在 LinearLayout(水平方向)中有 3 个 ImageView。我想根据向左或向右的移动触摸来显示它们。首先,我必须在 LinearLayout 内创建 3 个图像视图,并且只有 3 个图像视图中的一个可见。在 TouchEvent 中我想改变可见的位置,然后我想像 iBooks 中的书一样平滑地显示另一个。我该怎么做?

最好的问候,

【问题讨论】:

    标签: android position imageview android-linearlayout touch-event


    【解决方案1】:

    您可以参考以下示例。这将对您有所帮助。
    here

    【讨论】:

    • 不,图库不适合我的应用。因为,我的应用程序看起来像 iBooks 应用程序。从右向左轻触可全屏切换图片。
    • 你需要修改这个例子。供您参考。
    猜你喜欢
    • 2011-09-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-11-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多