-
xml添加
<anfq.numedittext.lib.AnFQNumEditText android:id="@+id/anetDemo" android:layout_width="match_parent" android:layout_height="wrap_content"/>
-
java设置
anetDemo = (AnFQNumEditText) findViewById(R.id.anetDemo); anetDemo.setEtHint("内容")//设置提示文字 .setEtMinHeight(200)//设置最小高度,单位px .setLength(50)//设置总字数 //TextView显示类型(SINGULAR单数类型)(PERCENTAGE百分比类型) .setType(AnFQNumEditText.SINGULAR) .setLineColor("#3F51B5")//设置横线颜色 .show();
forked from FJ917/FJEditTextCount
-
Notifications
You must be signed in to change notification settings - Fork 0
lzy0016/AnFQNumEditText
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
栗子——自定义EditText实现右下角计数控件
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Java 100.0%