안드로이드 개발 질문/답변
(글 수 45,052)
에뮬레이터를 실행해봐서 글자를 입력하려고하면 저 그림처럼 주황색 선이 그어져 있어요~
그래서 글자가 보이지 않아요~
<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:stretchColumns="2">
<View
android:layout_height="2dip"
android:background="#FF909090" />
<TableRow>
<TextView
android:layout_column="1"
android:text="ID"
android:padding="7dip" />
<EditText
android:layout_column="2"
android:id="@+id/id"
android:layout_height="25px"
android:layout_width="wrap_content"
android:padding="7dip"
android:layout_marginTop="7dip"
android:maxLength="15"
android:singleLine="true"
/>
</TableRow>
</TableLayout>
대충 이런식으로 구현되어 있는데요 .
코드는 이상없이 동작하는데
저런 주황색 선이 왜 나오는거인지 모르겠네요 ㅠ
미리, 감사드려요 !




주황색 선이 보이는것은 EditText가 select 되며 보여지는 그림같은데요..
전체적으로 텍스트필드 높이가 너무 낮은것 같네요....
editText에 background를 날려보세요.. 아래는 해당코드입니다.
<EditText
android:background="@null"