【问题标题】:Displaying Cards on an imageView在 imageView 上显示卡片
【发布时间】:2012-01-28 20:10:31
【问题描述】:

您好,我正在尝试在图像视图上显示卡片,其中一张略微覆盖另一张。我正在考虑使用填充,但我不知道如何使用它。谢谢。这是我展示卡片的方式。

while(bl.dealerIterator.hasNext() == true)
{
    dealerCards.setImageResource(bl.dealerIterator.next().cardImage());     
}

【问题讨论】:

    标签: android xml imageview


    【解决方案1】:

    使用AbsoluteLayout 并偏移每个ImageView 一定数量!

    【讨论】:

      【解决方案2】:

      切勿使用 AbsoluteLayout!

      您可以将各个卡片图像的屏幕外合成为您在 ImageView 中显示的单个屏幕外位图。

      【讨论】:

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