<?xml version="1.0" encoding="utf-8"?>
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
android:id="@+id/myEdit"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
style="?
android:attr/textViewStyle"
android:background="@null"
android:textColor="@null"
/>
当中background,能够设置成其它颜色等
textColor不一定要是null,能够设置字体颜色
加下划线
public class LineEditText extends EditText {
// 画笔 用来画下划线
private Paint paint;
public LineEditText(Context context, AttributeSet attrs) {
super(context, attrs);
paint = n