2016년 12월 19일 월요일

Design Screen Of app made with AI2


is it possible to move any item (buttons, labels, images etc) in the screen in a precise point?

For example i want tu use an image as background and i want to enter some points to overlap a point of the image in background.

Is it possible?

i can see only Horizzontal/vertical or table arrangement! :(

--
Due to the many different screens resolutions available, it would be almost useless to be able to place components in an absolute position, unless you want it to look good only on those devices with that same screen resolutions. Even though it involves a little more work, the relative positioning ensures that your layout will look almost the same in every device.
And no, there's no way to overlap components.

--
ok thank you :(

will be great in the future to overlap components on images of background :)

-- 
Would you like to share with us what is it that you are trying to do and see if there's an alternative method of achieving that same thing?

--
For Example i want that in the european flag

 flag.gif

if the labe1.text is Italy the first star becomes Red
if the label1.text is Spain the second star becomes Red and so on.. Adding on overlap another star with red color

--
In that case you may want to have the image as the screen background, then add a layout on top with the same exact dimensions as the screen (fill parent on both)
And have 12 different png files the same size as the flag but with a transparent background and 1 of the stars in red. Nothing else (please see the image attached).
Depending on the value on your label, set as the layout background Star1.png, Star2.png, etc. Of course, build your screen layout inside the main layout that holds the star image.
Do you understand?


-- 
Yes understood.
Good idea, while if i want to use a button or lable instead of the red star is not poaaible, right?

If i set up width and height of screen if i use a tablet or a smartphone i ll see different things, right?

--
That's not going to work, because you can't position the component in an absolute point, like I explained before.
If you need the star to be clickable, the you may want to use a canvas for the flag, and make the stars with sprites, then you will be able to detect clicks on those, but the con is that you can't add components on top of the canvas like you can do on layouts.

-- 


댓글 없음:

댓글 쓰기