2014년 12월 29일 월요일

How can i define the exact position of a component?

I was wondering if i could define the exact position of a component (i.e. not use the default positioning layout.) If you can tell me the answer to this i would be incredibly grateful. Thank you.



At the present time, you cannot.



In the old days when I was young, we used x and y values to place buttons and fields, but today, with users having many screen sizes, it is much better to use a layout mechanism which helps you adapt to these screen sizes. AI2 is at the moment not very good at that, but it will become better when it supports newer versions of Android, we hope soon now. You can be rather inventive with table layout, left or right adjustments etc.
It will never become as good as CSS3 or Java etc. but that should not surprise you.

On a canvas you can position sprites anyway you want. For a game this may just be what you need.


댓글 없음:

댓글 쓰기