How to change EditText cursor height?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to change the EditText cursor height, does anyone know how? 回答1: I had to dig far into the Android source to find the answer to this, but you essentially have to use padding on a custom shape drawable. note: only works on API 12 and greater due to support for textCursorDrawable Use positive top padding to move the top of your cursor higher User positive bottom padding to move the bottom of your cursor lower I usually end up using negative bottom padding to shorten the cursor because the it drops too low below baseline when you