
bbrouse
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2018
12:14 PM
9-patch button backgrounds
I've been playing with trying to get 9-patch images to work for button backgrounds, namely buttons with rounded corners. Does anyone know if this is possible, and if so what tweaks did you have to do to the image and/or button to get it to work?
3 REPLIES 3
Veeta
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2018
10:58 AM
Re: 9-patch button backgrounds
I use 9-patch images heavily. Which component are you using and what field are you setting? Button? ButtonGroup? Maybe you can share the 9-patch image file you are using for your source.

24i
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2018
08:02 AM
Re: 9-patch button backgrounds
You could also create your own button or extension on the button. We created a new button that has a lot more options like: adding an icon, setting alignment and padding for the icon/text, handle colours for (un)focused state, handle fonts and also support 9.patch images for the background or focus state.
We actually did the same for the input field and you can add as much options as you like of course.
We actually did the same for the input field and you can add as much options as you like of course.
fade7
Newbie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2023
05:43 AM
Re: 9-patch button backgrounds
Embroidery patches are versatile and can be easily attached to garments or accessories using stitching, iron-on adhesive, or hook-and-loop fasteners.