Angry_Ants 2017-02-27 16:13 采纳率: 0%
浏览 1955
已结题

Android ScrollView向上平移的属性动画底部会出现空白的情况,而不会自动向上滑动

ObjectAnimator animator = ObjectAnimator.ofFloat(mTitle, View.TRANSLATION_Y, -height);
ObjectAnimator animator1 = ObjectAnimator.ofFloat(mContentLayout, View.TRANSLATION_Y, 0, -height);

animatorSet.play(animator).with(animator1);
animatorSet.setDuration(500);

如题,mTitle是一个TextView,mContentLayout是一个铺满的ScrollView,但是向上平移的时候底部出现了空白,ScrollView却会向上平移

  • 写回答

1条回答 默认 最新

  • dabocaiqq 2017-02-27 23:46
    关注
    评论

报告相同问题?