开发者

insert frame title and subtitle for image in android?

开发者 https://www.devze.com 2023-01-18 03:47 出处:网络
I want to add frame to image with title and subtitle. The thing that I want to do is as fo开发者_开发技巧llows : There are number of styled frames available and user selects any picture from the phone

I want to add frame to image with title and subtitle. The thing that I want to do is as fo开发者_开发技巧llows : There are number of styled frames available and user selects any picture from the phone memory or takes a picture from camera, now on selecting any frame that picture should be in that frame. Also below that frame there should be title and subtitle of the image.

I hope I have made it clear of what I want to know.


As for the image frame I believe the easiest way to achieve it would be to use a nine patched image as the image background. By defining the padding ans stretch areas your frame will always be correct size for any image.

http://developer.android.com/guide/developing/tools/draw9patch.html

For title and and subtitle you should use TextViews under the image. Just define your own layout for the whole component.

0

精彩评论

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

关注公众号