Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
Arthy74
Level 7

Minikeyboard focus image

Hello,

I am trying to change the 'focusBitmapUri' property of the Minikeyboard with a custom png (9-patch image).

I checked the default focus image in memory using port 8080 and r2d2_bitmaps, which gave me the original size of the focus png -> 100x100 9-patch image

So i created a 100x100 png :
http://www.lecrabe.net/exchange/focused_key.9.png

but when the keyboard gains/looses focus, the whole component is moving slightly....

can you tell me what is wrong ?

NB: whatever png i tried, or the 9-patch black borders i set, the keyboard is still moving around
0 Kudos
4 Replies
valicode
Level 7

Re: Minikeyboard focus image

We are experiencing this issue too. Let me know if you have figured out a fix.
0 Kudos
Highlighted
TheAvatar
Level 7

Re: Minikeyboard focus image

We are also experiencing this issue. Did anyone figure out a fix?
0 Kudos
Arthy74
Level 7

Re: Minikeyboard focus image

Well,

I have better results now using https://romannurik.github.io/AndroidAssetStudio/nine-patches.html 

but when the keyboard is loosing focus, the whole component moves 3 or 4 pixels on the right...

I am not sure my client will appreciate this horrible glitch...
0 Kudos
renny_oh
Level 7

Re: Minikeyboard focus image

A pain.

I used 110 X 110 and patchworker(from google search) generates 9 patch images 112x112 under drawable-mdpi folder
and nothing inside for keyboardBitmapUri
    keyboardBitmapUri=" "  
    focusBitmapUri="pkg:/images/search/keyboard/focusedKey.9.png"

This will fix shifting keyboard at least when no BigmapUri.  if something in in, shifting comes back. 

And another Annoy part for property focusedKeyColor when white value, it turns dark.
so used 0xeeffffff
0 Kudos