Macsags / EmptiedEditText

清空输入框,删除输入框,必选项改变布局颜色

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EmptiedEditText

简介:

一个可清空删除的EditText
附带必选项功能


示例:

图片地址


日志

2020/6/22

  • 第一次上传
  • 删除按钮改为16px
  • 必选项背景色可修改

如何使用How to:

To get a Git project into your build:

Step 1. Add the JitPack repository to your build file

gradle maven sbt leiningen Add it in your root build.gradle at the end of repositories:

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

Step 2. Add the dependency

allprojects { 
	dependencies {
	        implementation 'com.github.Macsags:EmptiedEditText:1.0.1'
	      } 
	} 

使用方法:

        ConstraintLayout constraintLayout = findViewById(R.id.cl);//外层布局
        EmptiedEditText emptiedEditText = findViewById(R.id.ee);//清空输入框
        emptiedEditText.layout(constraintLayout,0xffFFF1F1);//设置外层布局变颜色,动态更改颜色

请关注

我的博客

About

清空输入框,删除输入框,必选项改变布局颜色


Languages

Language:Java 100.0%