"Align Horizontal" on VerticalArrangement in Java Bridge

26 views
Skip to first unread message

Justin Goldsmith

unread,
Aug 12, 2014, 12:33:49 AM8/12/14
to alternate-java-bridg...@googlegroups.com
Over a some time I have become fairly proficient with App Inventor - Now I am trying to move one of my projects into Eclipse to learn to write the project from scratch.

In app inventor, when using the VerticalArrangement  you have an option for "Align Horizontal" - When I Add the VerticalArrangment in Java, I can't figure out how to align it's elements to the center. Is there anyone who would be willing to explain if this is posisible using libSimpleAndroidRuntime.jar and if not, how they made it happen in AI? I really appreciate any help anyone can offer...

Here's the block I'm working with:

inputs = new VerticalArrangement(this);
inputs.Width(LENGTH_FILL_PARENT);
inputs.AlignHorizontal(Component.ALIGNMENT_CENTER);

Unfortunately, "AlignHorizontal" is undefined for VerticalArrangement...
Reply all
Reply to author
Forward
0 new messages