Reputation: 185
I wanted to create plain EditText(default android editext with no L shaped edges). However in my android studio, every time I create an EditText element, a L shaped EditText get created rather than a plain editText with no side edges. Can anyone tell me what the problem?
Please note: I just want remove the San Seriff at the ends and keep the rest of the line. Making background null or transparent removes the whole line and this is where I am stuck.
Upvotes: 1
Views: 788
Reputation: 1670
Create drawable
line.xml
file
set in EditText
android:background="@drawable/line"
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:bottom="1dp"
android:left="-2dp"
android:right="-2dp"
android:top="-2dp">
<shape android:shape="rectangle" >
<stroke
android:width="0.5dp"
android:color="@android:color/black" />
</shape>
</item>
</layer-list>
Upvotes: 1