GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - andyNinty/EditTextWithCount: a common EditText

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
.idea
.idea
 
 
app
app
 
 
gradle/wrapper
gradle/wrapper
 
 
img
img
 
 
lib
lib
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

EditTextWithCount

开发中经常用到的一个控件

img

使用方法

在xml文件中

<cn.andyleeblog.lib.EditTextWithCount
        android:layout_width="match_parent"
        android:layout_height="56dp"
        android:background="@android:color/white"
        app:hintText="请输入内容"
        app:maxCount="14" />

设置最大字符数

editTextWithCount.setMaxCount(int maxCount);

设置行数

editTextWithCount.setLines(int maxCount);

设置最大行数

editTextWithCount.setMaxLines(int maxCount);

设置字体颜色

editTextWithCount.setTextColor(int color);

设置hint 以及 颜色

editTextWithCount.setHintText(String hint);
editTextWithCount.setHintTextColor(int color);

设置方向

editTextWithCount.setViewOrientation(int orientation);

用法

在根目录下的 build.gradle 文件中添加

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

然后在app目录下的build.gradle文件中添加

	dependencies {
	        compile 'com.github.andyNinty:EditTextWithCount:1.0'
	}

About

a common EditText

Resources

Readme
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.