ThumbUp

前端之家收集整理的这篇文章主要介绍了ThumbUp前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

ThumbUp

项目地址: ldoublem/ThumbUp
简介:A nice thumb up control

点赞还可以这么玩,原产地dribbble

Preview

Gradle

compile 'com.ldoublem.thumbUplib:ThumbUplib:0.2'

Usage xml

<com.ldoublem.thumbUplib.ThumbUpView
            android:id="@+id/tpv"
            android:layout_width="50dp"
            android:layout_height="50dp"
            app:cracksColor="#33475f"
            app:edgeColor="#9d55b8"
            app:fillColor="#ea8010"
            app:unlikeType="1"
            />

java

mThumbUpView.setUnLikeType(ThumbUpView.LikeType.broken);
        mThumbUpView.setCracksColor(Color.rgb(22,33,44));
        mThumbUpView.setFillColor(Color.rgb(11,200,77));
        mThumbUpView.setEdgeColor(Color.rgb(33,3,219));
        mThumbUpView.setOnThumbUp(new ThumbUpView.OnThumbUp() {
            @Override
            public void like(boolean like) {
            }
        });
        mThumbUpView.Like();
        mThumbUpView.UnLike();
原文链接:https://www.f2er.com/xml/294677.html

猜你在找的XML相关文章