Skip to content

xiaoxiaoying/NumberPicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NumberPicker

android 修改系统NumberPicker中间的edittext颜色、内容等 image

LinedEditText 控制光标的高度,光标的样式都可以,主要设置 android:textCursorDrawable="@drawable/shape" shape.xml内容如下

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" 
    android:shape="rectangle"
    >
    <size android:height="25dp" android:width="1dp"/>
	<solid android:color="#000"/>
	<padding 
	    android:top="1sp"
	    android:bottom="-11sp"
	    />
</shape>

shape.xml

效果图 image

从这里找到了灵感

http://stackoverflow.com/questions/11641997/how-to-change-edittext-cursor-height

Download apk

About

这是从其他地方搬运过来的,原地址https://github.com/tclock/NumberPicker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published