android.support.v7.widget.CardView.setScaleX()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(115)

本文整理了Java中android.support.v7.widget.CardView.setScaleX()方法的一些代码示例,展示了CardView.setScaleX()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CardView.setScaleX()方法的具体详情如下:
包路径:android.support.v7.widget.CardView
类名称:CardView
方法名:setScaleX

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));

相关文章