views:

14

answers:

0

Hello, I'm writing a game in which I have a character that can be dressed with clothes, glasses, moustaches, etc. For the Avatar I use a Layout and for the container of the items, I use a scrollview with another layout that contains the items.

When I touch an item in the scrollview I need it to be added to the avatar layout, and modify its relative position so that it matches the avatar background (clothes on body, glasses on eyes, moustaches on face, etc). My problem is that when the item is added to the Avatar, its positions are not modified. I set the Layout Params of the item, which I inherit from ImageView but to no avail.

I even used AbsoluteLayout but nothing works.

Thanks.