There is the concept of rounded corners for views and drawables in Android, however, am working on an interface for a kids robot, and someone asked for curly borders - sort of like wavy (sine wave kind of thing). Now, how the heck can one achieve such a thing in either XML or Java - especially, without resorting to use of image overlays or backgrounds?
rounded corners aren't in fact rounded View
s, its just a bit of transparency in corners. you can create some custom drawable
s/ Bitmap
s and set for your View
s (as a background or use ImageView
) or you can use custom programmatic drawing like HERE
Have tried to use images of that form and use them as background in a transparent container?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.