【问题标题】:Custom a shape for the imageView为 imageView 自定义一个形状
【发布时间】:2023-03-06 07:04:01
【问题描述】:

我怎样才能以这种格式保留我的图像视图,而图像不会“溢出”两侧并占用所有空间

here is the shape

【问题讨论】:

    标签: android xml imageview


    【解决方案1】:

    如果你有形状,可以在ImageView中添加src,并将图片设置为同一个ImageView的背景。因为图片在背景前面。

    【讨论】:

      【解决方案2】:

      在imageview中设置..android背景紫色图像和app:src中间图像..希望对您有帮助

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-11-01
        • 2014-06-16
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多