开发者

How to stretch Layout background Image as per child content?

开发者 https://www.devze.com 2023-03-28 21:16 出处:网络
I want to stretch layout background image as per child\'s content. I am using relative layout and set bubble image as its background.

I want to stretch layout background image as per child's content. I am using relative layout and set bubble image as its background. In that relative layout i ha开发者_如何学JAVAve add ImageView and TextView as child. some content of textview or image size is bigger then bubble image.

How can i fix it?

Thank you in advance.....

Here is my bubble image

How to stretch Layout background Image as per child content?

with image..

How to stretch Layout background Image as per child content?

wthout image

How to stretch Layout background Image as per child content?

original bubble image..


You should convert that image to a 9 patch. Android system takes care of stretching the 9 patch images depending on the stretchable regions you define on it.

0

精彩评论

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