Skip to content
/ lpz Public

Android-笑脸评价、评价控件、点赞控件,自定义控件、

Notifications You must be signed in to change notification settings

lpz0715/lpz

Repository files navigation

笑脸点赞控件

首先感谢作者:@zenglingchao

我是在该项目控件

https://github.com/zenglingchao/SmileView

的基础上

自己做了更改

第一次提交项目的小菜鸡,

有什么问题也请大家多指教

image

集成方法:

第一步:

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

第二步:

dependencies {

        implementation 'com.github.zeroBugL:lpz:v1.0.1'
	
}

============================================================

使用方法

XMl

<com.lpz.library.SmileView

    android:id="@+id/smileView"

    android:layout_width="wrap_content"

    android:layout_height="wrap_content"

    app:lpz_iv_background_nor="@drawable/white_background"

    app:lpz_iv_background_sel="@drawable/yellow_background"

    app:lpz_iv_height="400"

    app:lpz_iv_resource="@drawable/animation_like"

    app:lpz_iv_size="25"

    app:lpz_iv_type="0"

    app:lpz_top_txt="满意"

    app:lpz_top_txt_color="#ffffff" />

    <attr name="lpz_iv_size" format="integer" />   <!--笑脸图片大小 -->

    <attr name="lpz_iv_background_sel" format="reference|color" />   <!--选中情况下的背景 -->

    <attr name="lpz_iv_background_nor" format="reference|color" />   <!--未选中情况下的背景 -->

    <attr name="lpz_iv_height" format="integer" />    <!--选中动画时 笑脸崛地而起的高度 -->

    <attr name="lpz_iv_type" format="integer" />      <!--动画 过程的方向  0-上下摆动   1-左右摆动 -->

    <attr name="lpz_top_txt" format="string" />       <!--笑脸顶部的文字内容 -->

    <attr name="lpz_top_txt_color" format="color|reference" /><!--笑脸顶部的文字的颜色 -->




java:

//选中状态监听
 smileView.onSmileViewCheckedChangeListner(new IOnCheckedChangeListener() {
        @Override
        public void checkedChangeListener(boolean nowIsCheck) {
            
        }
    });

========================================================================================================================

About

Android-笑脸评价、评价控件、点赞控件,自定义控件、

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages