44
GitHub - binqiangsun/IconCountView: 点赞图标和数字动画
source link: https://github.com/binqiangsun/IconCountView
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
binqiangsun/IconCountView
master
Code
IconCountView
该项目是社区类APP点赞,收藏等按钮操作后的数字动画效果的View
2017.10.23更新
为了增强实际的应用性, 增加了当数量为0的时候, 显示文字的功能,效果如下:
2017.10.25更新
增加文字颜色的设置:
2017.10.30更新
分离Model,View层,应用MVP架构
gradle
implementation 'com.sunbq:iconcountview:1.0.1'
<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"/>
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK