Я пытаюсь установить нижнюю границу TextView в Android с помощью рисования списка слоев, но проблема в том, что я вижу углы немного вверх дном, а не прямую линию под textview. Я хочу, чтобы это была идеальная прямая линия, а не изогнутая.
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<!-- draw a 4 dp width border around the rectangle shape -->
<stroke android:color="@color/colorPrimary" android:width="2dp"/>
</shape>
</item>
<!--
hide left, top and right side border using white color
by padding 4 dp bottom side
-->
<item android:bottom="3dp">
<shape android:shape="rectangle">
<solid android:color="@android:color/white"/>
</shape>
</item>
</layer-list>
<TextView
android:gravity="center"
android:text="@string/eat"
android:textSize="12sp"
android:background="@drawable/border_bottom_green_tab"
android:paddingTop="5dp"
android:paddingBottom="5dp"
android:layout_width="match_parent"
android:layout_height="wrap_content" />