Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
bbrouse
Visitor

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?
0 Kudos
3 REPLIES 3
Veeta
Visitor

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.
0 Kudos
24i
Streaming Star

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.
0 Kudos
fade7
Newbie

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.

https://austintrim.co/custom-embroidery-patches

0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.