隐藏android中EditText的下划线
16lz
2021-01-23
有的时候需要隐藏掉EditText的边框和下划线,代码为:
主要是这一栏:
android:background="@null"
<EditText style="?android:attr/textViewStyle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@null" android:hint="输入用户名" android:paddingBottom="5dip" android:paddingTop="5dip" />
效果图:
更多相关文章
- 2011.12.06——— android 带边框的ImageView
- android gallery 去掉渐变的边框
- Android边框背景
- Android TableLayout 实现边框
- Android系列教程(2):为 TextView组件加上边框
- android 用 XML 自定义边框(只上下边框有色)
- Android TextView 设置中划线 下划线
- android 中隐藏EditText的下划线方法
- android 加边框