0

When i am using EditText in API 17 , It displays like below.

enter image description here

Is it possible to display the EditText as rectangular box like below in API 17 or should i use lower level API's

enter image description here

saravanan
  • 5,339
  • 7
  • 45
  • 52
  • I think you will find an answer here: http://stackoverflow.com/questions/17607173/change-android-edittext-style-from-rectangular-border-to-underscore – MarkoSerbia Oct 06 '13 at 11:10

1 Answers1

1

Try this in ur xml file in EditText

<EditText
            android:id="@+id/edittext"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content" 
            android:maxLength="25"
            android:background="@android:drawable/editbox_background"

            />

Focus on this line android:background="@android:drawable/editbox_background"

hope this will work.

android_guy
  • 236
  • 1
  • 7
  • 18