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: 
Highlighted
jacobposner
Level 7

FocusBitmap Issues FloatingFocus vs FixedFocusWrap

Hello all, 

I am currently developing an app on a Roku 4 Premium+ running v7.6 and am attempting to use a 9-patch image for the focus bitmap. There are no problems in my Row List when the row fills the entire section with items and FixedFocusWrap is being used for the RowFocusAnimationStyle. The issue begins when FloatingFocus is initiated for a row that does not have enough items to fill the screen/row. When this problem occurs, the focus bitmap shifts to the left about 10 units from where it is on the other rows.

Does anyone know why this happens with FloatingFocus? And how to prevent it so that the alignment of the focus bitmap is the same regardless of the RowFocusAnimationStyle?

Thank you!
Jake
0 Kudos
3 Replies
jacobposner
Level 7

Re: FocusBitmap Issues FloatingFocus vs FixedFocusWrap

So it seems that it was my image that was causing the problem. I still don't know what about the image I was using was wrong or how the focus bitmap could shift outside of the width of the list itself. If anyone has any insight into that I am all ears.

I made my original image here:
https://romannurik.github.io/AndroidAss ... 0&name=9_0

Now I am using this instead:
http://inloop.github.io/shadow4android/

If anyone has another 9-patch generator that is better than the shadow generator I am using please let me know!
0 Kudos
destruk
Level 10

Re: FocusBitmap Issues FloatingFocus vs FixedFocusWrap

I don't know if it is 'better' - but I used this one before and it worked for what I needed it to do. (FREE) 

https://www.digitalsquid.co.uk/patchworker/
0 Kudos
jacobposner
Level 7

Re: FocusBitmap Issues FloatingFocus vs FixedFocusWrap

"destruk" wrote:
I don't know if it is 'better' - but I used this one before and it worked for what I needed it to do. (FREE) 

https://www.digitalsquid.co.uk/patchworker/

Thank you I will check it out!  Smiley Very Happy
0 Kudos