ImageView displaying in layout but not on actual device

前端 未结 9 1830
悲&欢浪女
悲&欢浪女 2020-12-13 12:50

I have an ImageView that I want to display matching the full width of the device, I realized that like this:



        
9条回答
  •  执念已碎
    2020-12-13 13:22

    Alright I've tried changing the resolution of the image (cutting it in half making it 1000x130), and somehow that fixed the problem. I think Android can't render large images like that directly? I don't know, if you know more about the subject please don't hesitate to reply! Anyway, scaling down the image worked.

提交回复
热议问题