Skip to content

Navigation Menu

Sign in
Sign up

Latest commit

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date

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

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /