[英]how to achieve this kind of animation in android?
在水平回收站視圖中嘗試了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;
}
我得到了這個問題的解決方案,這是相似的。 https://github.com/Cleveroad/FanLayoutManager
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.