本文整理了Java中android.support.v7.widget.CardView.setScaleX()
方法的一些代码示例,展示了CardView.setScaleX()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CardView.setScaleX()
方法的具体详情如下:
包路径:android.support.v7.widget.CardView
类名称:CardView
方法名:setScaleX
暂无
代码示例来源:origin: Yellow5A5/Material-Design-Login
@Override
public void onAnimationUpdate(ValueAnimator animation) {
float factor = (float) animation.getAnimatedValue();
mFirNameCv.setAlpha(factor);
mFirNameCv.setScaleX(factor);
mFirNameCv.setScaleY(factor);
mLastNameCv.setAlpha(factor);
mLastNameCv.setScaleX(factor);
mLastNameCv.setScaleY(factor);
}
});
代码示例来源:origin: ywwynm/EverythingDone
cv.setCardBackgroundColor(color);
} else {
cv.setScaleX(1.0f);
cv.setScaleY(1.0f);
cv.setCardElevation(2 * mDensity);
代码示例来源:origin: open-android/ViewPagerCards
currentCard.setScaleX((float) (1 + 0.1 * (1 - realOffset)));
currentCard.setScaleY((float) (1 + 0.1 * (1 - realOffset)));
nextCard.setScaleX((float) (1 + 0.1 * (realOffset)));
nextCard.setScaleY((float) (1 + 0.1 * (realOffset)));
代码示例来源:origin: DevExchanges/ViewPagerCards
currentCard.setScaleX((float) (1 + 0.1 * (1 - realOffset)));
currentCard.setScaleY((float) (1 + 0.1 * (1 - realOffset)));
nextCard.setScaleX((float) (1 + 0.1 * (realOffset)));
nextCard.setScaleY((float) (1 + 0.1 * (realOffset)));
代码示例来源:origin: JinBoy23520/CoderToDeveloperByTCLer
currentCard.setScaleX((float) (1 + 0.1 * (1 - realOffset)));
currentCard.setScaleY((float) (1 + 0.1 * (1 - realOffset)));
nextCard.setScaleX((float) (1 + 0.1 * (realOffset)));
nextCard.setScaleY((float) (1 + 0.1 * (realOffset)));
代码示例来源:origin: qdxxxx/BezierViewPager
currentCard.setScaleX((1 + mScaleRatio * (1 - realOffset)));
currentCard.setScaleY((1 + mScaleRatio * (1 - realOffset)));
currentCard.setCardElevation(mAdapter.getMaxElevationFactor() * (1 - realOffset));
nextCard.setScaleX((1 + mScaleRatio * (realOffset)));
nextCard.setScaleY((1 + mScaleRatio * (realOffset)));
nextCard.setCardElevation(mAdapter.getMaxElevationFactor() * (realOffset));
cardView.setScaleX((1));
cardView.setScaleY((1));
内容来源于网络,如有侵权,请联系作者删除!