animation - ObjectAnimator in Android doesn't update the View's parent -


objective:

build slideup animation in imageview fixed height placed in linearlayout wrap_content height.

problem:

the animation runs normally, parent linearlayout doesn't resize while or after animation occurs. mean, if set "wrap_content" , "content" changes it's position (y axis -100), it's expected parent accompanies animation, "animating" it's height 0 well, or not?

how can force continue "wraping" content while animation runs?

ps: no, it's not fillafter, i'm using objectanimator, changes real object properties, not view drawn. instance, click event not being triggered on place image used before animation.

my code:

objectanimator oa = objectanimator.offloat(findviewbyid(r.id.menu_tile_image), "y", 0, -100);

layout structure:

linearlayout (match_parent, wrap_content) > imageview (fill_parent, 100)

any clue on that? thanks!


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -