【问题标题】:Android/Eclipse: Zone of transparency in a png imageAndroid / Eclipse:png图像中的透明区域
【发布时间】:2013-01-02 03:48:27
【问题描述】:

我有一个带有透明区域的 png 图像。我想在这个透明区域中添加一个 Surface View。你能给我一些建议吗?我已经在这个网站和谷歌上找了几个小时,但没有找到我可以使用的东西。

谢谢

【问题讨论】:

    标签: android eclipse image png


    【解决方案1】:

    使用 FrameLayout 并将您的 png 作为叠加层放在 SurfaceView 的顶部。

    <FrameLayout>
     <SurfaceView>
     <ImageView>
    </FrameLayout>
    

    【讨论】:

    • 非常感谢!只是一个问题:我保存的照片是透明区域的尺寸(这会很棒)还是整个屏幕的尺寸?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-08-04
    • 2011-03-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多