开发者

how to set equal top and bottom of image in android?

开发者 https://www.devze.com 2023-01-14 20:37 出处:网络
i want to set equal top and bottom of each images,how can i set for all i开发者_StackOverflowmages in android?

i want to set equal top and bottom of each images,how can i set for all i开发者_StackOverflowmages in android? anybody know please give the code for that

Thanks all


Just set android:scaleType="center" to your ImageView for ImageBitmap, or set android:layout_gravity="center" to your ImageView for its layout in his parents.

it perfectly work

0

精彩评论

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

关注公众号