[英]how to achieve this kind of animation in android?
tried animations for a cardview in horizontal recycler view, but no luck!!!! 在水平回收站视图中尝试了Cardview动画,但是没有运气!!!!
private Animation inFromTopAnimation() {
Animation inFromTop = new TranslateAnimation(
Animation.RELATIVE_TO_PARENT, 0.0f,
Animation.RELATIVE_TO_PARENT, 0.0f,
Animation.RELATIVE_TO_PARENT, -1.0f,
Animation.RELATIVE_TO_PARENT, 0.0f);
inFromTop.setDuration(500);
inFromTop.setInterpolator(new AccelerateInterpolator());
return inFromTop;
}
I got the solution for the question, which is similar. 我得到了这个问题的解决方案,这是相似的。 https://github.com/Cleveroad/FanLayoutManager https://github.com/Cleveroad/FanLayoutManager
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.