当指定的图像作为背景布局(线性||相对),它拉伸各地的布局,但我想作出这样的背景图像进行内部中心的布局中ImageButtons
:
android:scaleType="centerInside"
有没有一种方法可以实现,在Linear
或Relative
布局?
您应该尝试...
1.)两者都使用RelativeLayout属性matchParent。和centerInparent = true
2.)在其中放入一个ImageView属性WrapContent。现在以背景或src的形式查看
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句