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: 
Arthy74
Visitor

Keyboard focusBitmapUri image size

Hello all,

Seems to be a recurrent problem for many of us, so maybe someone can answer this once for all.

I am trying to customize the Keyboard component.

1. changing the keyboard background using the provided template seems to work perfectly
2. trying to change the focus, and i am stuck

The best result i have is to use Android Studio Simple Nine-Patch: https://romannurik.github.io/AndroidAss ... tches.html

I provided the same cell size as 1 of the cell from the keyboard template (60x55 png image), as a result i have a 62x57 image "keyboard-focus.9.png" 
Everything looks great, the png is well resized when switching from simple to double cells of the keyboard (so i guess the image size is correct).

But if the Keyboard component looses focus, it jumps in the right down direction, and jump back top-left direction if keyboard get focus back.
Restoring the default focus removes the issue.

Is this a bug from the component ?
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.