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

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

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

CardView.setClickable介绍

暂无

代码示例

代码示例来源:origin: openMF/mobile-wallet

  1. @Override
  2. public void onFetchLevelSuccess(KYCLevel1Details kycLevel1Details) {
  3. hideProgressDialog();
  4. int currentLevel = Integer.parseInt(kycLevel1Details.getCurrentLevel());
  5. if (currentLevel >= 1) {
  6. cvLvl1.setClickable(false);
  7. llLvl1.setBackgroundResource(R.drawable.cardview_round_green);
  8. }
  9. if (currentLevel >= 2) {
  10. cvLvl2.setClickable(false);
  11. llLvl2.setBackgroundResource(R.drawable.cardview_round_green);
  12. }
  13. if (currentLevel >= 3) {
  14. cvLvl3.setClickable(false);
  15. llLvl3.setBackgroundResource(R.drawable.cardview_round_green);
  16. }
  17. }

代码示例来源:origin: ApplikeySolutions/OrionPreview

  1. @OnClick(R.id.rl_container)
  2. void onContainerClick() {
  3. downAnimationImageView.showAnimation();
  4. arcDownAnimationTv.showAnimation();
  5. decreaseAnimationImage.showAnimation();
  6. decreaseAnimationText.showAnimation();
  7. rlContainer.setClickable(false);
  8. cvProductDetails.setClickable(true);
  9. removeBlur();
  10. }

代码示例来源:origin: ApplikeySolutions/OrionPreview

  1. @OnClick(R.id.cv_product_details)
  2. void onProductDetailsClick() {
  3. upAnimationImageView.showAnimation();
  4. arcUpAnimationTv.showAnimation();
  5. increaseAnimationImage.showAnimation();
  6. increaseAnimationText.showAnimation();
  7. cvProductDetails.setClickable(false);
  8. rlContainer.setClickable(true);
  9. addBlur();
  10. }

相关文章