在开发过程中可能很多地方都需要输入 今天为大家整理一下EditText 的样式 很简单
Editext
<EditText android:focusable="false" android:layout_width="0dp" android:padding="3dp" android:id="@+id/rangmessage_address" android:background="@drawable/edittype" android:layout_height="wrap_content" android:layout_weight="3"/>
android:focusable="false" // 不自动获取焦点 不会自动弹出键盘 需点击edittext 即可获取
edittext.setKeyListener(null); // 设置此方法 可让edittext 获取焦点时也不弹出键盘 为不可编辑状态 不
会影响他的点击事件 可以给edittext 设置点击 滑动等等
<--edittext 的背景 即长方形圆角输入框- edittype
->
<solid android:color="#ffffff" /> // 填充色 <corners android:radius="3dip"/> // 圆角 <stroke android:width="1dip" // 输入框宽度 android:color="#323233" /> // 输入框颜色