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.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reel Rookie

Manage alignment of childs of LayoutGroup

Hello spartans,

I've a requirement where I want different horizAlignment property for the childs of same LayoutGroup.
Eg. First child is keyboard which should be centre aligned and second one is text field which should be left alligned.

I've tried applying the translation, disabling inheritParentTransform, etc.

Any help is much appreciated. Thanks in advance 🙂

0 Kudos
Community Moderator
Community Moderator

Re: Manage alignment of childs of LayoutGroup

Hi @abdcool17,

You can use a Group container and explicitly set the translations of the child items, based on the localBoundingRect() values return for the child nodes.

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.