【问题标题】:Android. Draw bitmap between two layouts安卓。在两个布局之间绘制位图
【发布时间】:2011-03-23 09:09:12
【问题描述】:

我想制作一个应用程序,它有背景和一些前面带有 alpha 通道的图片。在他们之间,我想绘制位图/动画。 我该怎么做?

【问题讨论】:

    标签: android android-layout android-animation


    【解决方案1】:

    这很容易。您可以使用 FrameLayout 作为根布局并为其设置背景。然后再添加两个填满屏幕的 LinearLayout。在第一个中,您可以添加像 ImageView 这样的动画视图,而在第二个中,您可以插入带有透明图像的 ImageView 或 ImageButton。

    还有许多其他方法可以做到这一点,例如为动画层使用自定义视图等。请在此处查看我的示例:How can I use the animation framework inside the canvas?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多