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

Angry_Ants 2017-02-28 12:02:37
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却会向上平移
...全文
231 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

80,351

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧