Translate relative layout and get the changed height in Android Animation -


i want translate relative layout bottom , want continuously changed height of layout. what's right way of doing?

animation animation = animationutils.loadanimation(getactivity(), r.anim.slide_up); animation.setduration(333); view.startanimation(animation); 

right now, using above code don't know how listen changed height.

thanks, colin

use library :androidviewanimations

it has listeners , nice animations, highly reccommended

example : refer

using android own implemntaion

fadeinanimation.setanimationlistener(new animation.animationlistener() {     @override     public void onanimationstart(animation animation) {      }      @override     public void onanimationend(animation animation) {      }      @override     public void onanimationrepeat(animation animation) {      } }); 

Comments

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -