有的时候需要隐藏掉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" />
效果图:
本文介绍了一种在Android应用中隐藏EditText组件边框和下划线的方法。通过设置android:background=@null属性来实现去除边框的效果。此外,还提供了具体的代码示例和展示效果。
1202

被折叠的 条评论
为什么被折叠?



