How to choose an image resolution to be shown fullscreen?

前端 未结 1 1017
独厮守ぢ
独厮守ぢ 2020-12-20 05:13

I have an image which is actually 393 x 21 px, which I would like to set on the bottom of my View.

The problem is that, even if i set the width and the height to fil

相关标签:
1条回答
  • 2020-12-20 05:36

    //in your xml Image attribute as

    android:scaleType="fitXY"
    

    or //using thru programatically

    imgview.setScaleType(ScaleType.FIT_XY);
    
    0 讨论(0)
提交回复
热议问题