CreditSesameRingView Android 仿支付宝芝麻信用分仪表盘效果开源项目

我要开发同款
匿名用户2016年09月06日
76阅读

技术信息

开源地址
https://github.com/HotBitmapGG/CreditSesameRingView
授权协议
Apache

作品详情

自定义View之仿支付宝芝麻信用分仪表盘效果,喜欢的话,请给个star,谢谢.

使用

添加项目依赖

Add it i your root build.gradle at the ed of repositories: allprojects {        repositories { ... mave { url "https://jitpack.io" }        }    } Add the depedecy    depedecies {            compile 'com.github.HotBitmapGG:CreditSesameRigView:V1.0.2' }

新版芝麻信用分使用

     // The gradiet color ca defie your ow private fial it[] mColors = ew it[]{            0xFFFF80AB,            0xFFFF4081,            0xFFFF5177,            0xFFFF7997             }; // Set up the eed to score mLayout = (RelativeLayout) view.fidViewById(R.id.layout);      mButto = (Butto) view.fidViewById(R.id.bt);      ewCreditSesameView = (NewCreditSesameView) view.fidViewById(R.id.sesame_view);      mLayout.setBackgroudColor(mColors[0]);      mButto.setOClickListeer(ew View.OClickListeer()      { @Override public void oClick(View view)           {               ewCreditSesameView.setSesameValues(639);               startColorChageAim();           }      }); // The backgroud color gradiet aimatio Simply illustrates the effect Ca customize accordig to your eed public void startColorChageAim()     { ObjectAimator aimator = ObjectAimator.ofIt(mLayout, "backgroudColor", mColors);         aimator.setDuratio(3000);         aimator.setEvaluator(ew ArgbEvaluator());         aimator.start();     }

旧版芝麻信用分使用

      // Set up the eed to score oldCreditSesameView = (OldCreditSesameView) view.fidViewById(R.id.sesame_view);      mButto = (Butto) view.fidViewById(R.id.bt);      mButto.setOClickListeer(ew View.OClickListeer()      { @Override public void oClick(View view)          {              oldCreditSesameView.setSesameValues(639);          }      });

功能介绍

自定义View之仿支付宝芝麻信用分仪表盘效果,喜欢的话,请给个star,谢谢. 使用 添加项目依赖
Add it in your root build.gradle at the end o...

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论