You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

io.github.dboy233:ImageCheckBox

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

io.github.dboy233:ImageCheckBox

Multi-state ImageCheckBox

2.0.1
Source
mavenMaven
Version published
Maintainers
1
Source

ImageCheckBox

Maven Central

allprojects {
	repositories {
		...
		mavenCentral()
	}
}

dependencies {
	implementation 'io.github.dboy233:ImageCheckBox:${last-version}'
}

可以设置三种状态图片的CheckBox

           
	<ImageCheckBox
         app:onDrawable="@mipmap/ic_image_check_on" 开启/选中状态
         app:offDrawable="@mipmap/ic_image_check_off" 关闭/未选中状态
         app:waitDrawable="@mipmap/ic_image_wait" 介于开启和关闭之间的状态等待/未全选状态
         app:checked="true"/>
   
    /**
     * @param wait           等待状态
     * @param notifyListener 是否通知回调;只有在wait=false时进行判断
     */
    public void setWait(boolean wait, boolean notifyListener)
        
    /**
     * 是否是等待状态
     */
    public boolean isWait()
	
    /**
     *是否选中
     */
    public boolean isCheck() 
        
    /**
     * 设置选中状态不通知回调方法
     *
     * @param isCheck 选中状态
     */
    public void setCheck(boolean isCheck) 
        
    /**
     * 设置选中状态不通知回调方法
     *
     * @param isCheck        选中状态
     * @param notifyListener 是否通知回调方法
     */
    public void setCheck(boolean isCheck, boolean notifyListener) 
未选中选中等待

FAQs

Package last updated on 03 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts