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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -