开发者

how to set image's top and bottom in same size for android?

开发者 https://www.devze.com 2023-01-15 14:20 出处:网络
I want todisplay image in center and开发者_开发技巧 top and bottom in same size refer bellow screens,anybody know please give the code to me...

how to set image's top and bottom in same size for android?

how to set image's top and bottom in same size for android?

how to set image's top and bottom in same size for android?

how to set image's top and bottom in same size for android?

I want to display image in center and开发者_开发技巧 top and bottom in same size refer bellow screens,anybody know please give the code to me... Thanks All


Use

android:scaleType="centerInside"

or

ImageView.setScaleType(ImageView.ScaleType.CENTER_INSIDE)

0

精彩评论

暂无评论...
验证码 换一张
取 消