android - Android: Text Input Layout: How to change the height if the Edit Text Line
问题描述
There is a way to change the color of the Edit Text line in TextInputLayout:
<item name="colorControlNormal">@color/White</item>
<item name="colorControlActivated">@color/red</item>
But is there some way to change the height of the Edit Text line?
解决方案
不,您不能更改 edittext 行的高度,您可以像这样自定义 edittext 行
android:backgroud=@null
并且在edittext下获取一个视图,您可以提供颜色高度宽度等。
<View android:height="5dp"android:backgroud='#000000'/>
推荐阅读
- c - fgets() 工作很尴尬
- cypress - 运行不同组赛普拉斯测试的简单方法
- asp.net - 将 Swagger UI 添加到自定义 .NET Web API
- reactjs - 带有 create-react-app 的 React-Router 未安装/渲染组件
- javascript - 如何使用一键禁用锚标记
- python - 如何在此直方图中添加图例?
- compression - uncompress a .txt.gz file in mac?
- speech-recognition - Google Speech API 元数据不会影响结果或转换方法
- java - Java Double Object 初始化与其他 Number 类型对象
- git - 用 git 或 hub 命令替换 GitHub UI 序列