2013-10-06 2 views
0

API 17에서 EditText를 사용하면 아래와 같이 표시됩니다. EditText in API Level 17

enter image description here

는 API 17에 아래와 같이 직사각형 상자로 글고 치기를 표시 할 수 있나요 아니면 낮은 수준의 API의

enter image description here

+0

답변을 찾으실 수 있습니다 : http://stackoverflow.com/questions/17607173/change-android-edittext-style-from-rectangular-border-to-underscore – MarkoSerbia

답변

1

이 글고

통해 UR XML 파일이 시도 사용해야합니다
<EditText 
      android:id="@+id/edittext" 
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:maxLength="25" 
      android:background="@android:drawable/editbox_background" 

      /> 

이 줄에 초점 android:background="@android:drawable/editbox_background"

희망이 작동합니다.

+0

좋아요! 당신의 도움을 주셔서 감사합니다. – saravanan