GithubHelp home page GithubHelp logo

iconcountview's Introduction

IconCountView

该项目是 《HenCoder「仿写酷界面」活动》点赞效果的投稿

即刻点赞效果

2017.10.23更新

为了增强实际的应用性, 增加了当数量为0的时候, 显示文字的功能,效果如下:

2017.10.25更新

增加文字颜色的设置:

配置

gradle

implementation 'com.sunbq:iconcountview:1.0.1'

xml

<com.sunbinqiang.iconcountview.IconCountView
        android:id="@+id/praise_view"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="16dp"
        app:count="123"
        app:state="false"
        app:zeroText="赞"
        app:textNormalColor="#8a8a8a"
        app:textSelectedColor="#d4237a"
        app:textSize="12sp"
        app:normalRes="@drawable/icon_praise_normal"
        app:selectedRes="@drawable/icon_praise_selected"/>

iconcountview's People

Contributors

binqiangsun avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.