I want to create a custom shaped button like below in android with xml(I know I can do it with the image but it isn't one of my options),how to do this? I started with the rectangle shape and then tried to play with the corners in negative way to make the right side raise but I was unsuccessful.
你应该使用 9-patch(可调整大小的 drawable)作为你的按钮背景,阅读这个。
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.