public void addCard(TinderCardView tc){
ViewGroup.LayoutParams layoutParams; layoutParams = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
int childCount = getChildCount();
addView(tc, 0, layoutParams);
float scaleValue = 1 - (childCount/50.0f);
tc.animate()
.x(0)
.y(childCount * yMultiplier)
.scaleX(scaleValue)
.setInterpolator(new AnticipateOvershootInterpolator())
.setDuration(DURATION);
}
TinderStackLayout.java 文件源码
java
阅读 25
收藏 0
点赞 0
评论 0
项目:TinderStack
作者:
评论列表
文章目录