Preferably, I'd like a somewhat fancy bevel . I'd like the picture to have some depth on it..so it doesn't look so plain and old-fashion :)
+2
A:
You can perhaps do something with the 2D Canvas
API, but I don't know enough about that to describe a process. Here's how you can try to do that with ordinary widgets...well, mostly ordinary...:
Step #1: Create a nine-patch PNG that has your "somewhat fancy bevel" and is designed to stretch around images.
Step #2: Set that nine-patch PNG as the background of the ImageView
that has your image.
Step #3: Adjust the padding of the ImageView
so that your bevel shows -- that'll depend on how wide you made the bevel effect.
It's possible you'll need to put the nine-patch PNG on a LinearLayout
or something and have the ImageView
in there (then use margins to allow the bevel to peek through), but I think you can do it without the extra widget.
CommonsWare
2010-02-17 13:00:32
This works perfectly if you specify the content area (right and bottom borders) in the 9patch. Then you don't even have to specify a margin or any padding in the actual ImageView. Just set your 9patch as the background of the ImageView and you're done.
synic
2010-06-04 20:53:26