摘要:        
红色部分为自己的实践理解如何实现将View向上平移自身高度一半的距离?TranslateAnimation translate = new TranslateAnimation(Animation.RELATIVE_TO_SELF, 0, Animation.RELATIVE_TO_SELF, 0,Animation.RELATIVE_TO_SELF, 0, Animation.RELATIVE_TO_SELF, 0.5f);mView.startAnimation(translate);问题:当动画结束后,View会跳回到原始位置。改进:AnimationSet set = new Anim    阅读全文
posted @ 2013-10-17 09:15
nickycookie
阅读(2149)
评论(0)
推荐(0)
        

 浙公网安备 33010602011771号
浙公网安备 33010602011771号