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: 
abdcool17
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
1 REPLY 1
RokuJonathanD
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.