Tag: 过渡

创建一个较慢的过渡。 TransitionManager.beginDelayedTransition(); 太快了

我正在创建一个过渡。 单击按钮时,将执行以下方法。 该方法改变了图像视图的大小和位置,并将其淡化。 我正在使用TransitionManager.beginDelayedTransition(); is too fast. TransitionManager.beginDelayedTransition(); is too fast. 减缓过渡..但它仍然太快了。 我该怎么做才能减缓过渡期。 谢谢。 private void moveIcon() { View moveableIcon = findViewById(R.id.moveableImageView); TransitionManager.beginDelayedTransition(myLayout); // change the position of the 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 the size of the button ViewGroup.LayoutParams sizeRules = […]