java - How to slow down my transition. TransitionManager.beginDelayedTransition(myLayout) is too fast. -
i have method below moves imageview top left corner. works perfectly, going fast. slow down. read on , saw transitionmanager.begindelayedtransition(mylayout) should use slow transition. still extremely fast.how can slow down??
private void moveicon() { view moveableicon = findviewbyid(r.id.imageicon); transitionmanager.begindelayedtransition(mylayout); // change position of icon relativelayout.layoutparams positionrule = new relativelayout.layoutparams( relativelayout.layoutparams.wrap_content , relativelayout.layoutparams.wrap_content); positionrule.addrule(relativelayout.align_parent_top , relativelayout.true); positionrule.addrule(relativelayout.align_parent_left , relativelayout.true); moveableicon.setlayoutparams(positionrule); // change size of button viewgroup.layoutparams sizerules = moveableicon.getlayoutparams(); sizerules.width = 70; sizerules.height = 70; moveableicon.setlayoutparams(sizerules); }
Comments
Post a Comment