How to resize image view according to screen resolution and size

后端 未结 2 1844
一向
一向 2021-01-27 14:33

I want to resize image view according to screen resolution and size. How to do it? I searched android development tutorials.. but it is useless.. pls help.. It\'s for my mini pr

2条回答
  •  忘掉有多难
    2021-01-27 15:05

    You can try to scale the image to X,Y coordinates by setting:

    android:scaleType="fitXY"
    

    property.

提交回复
热议问题