Question: Is it possible to create an Android shape object with stroke on only certain sides?
Answer:
Use the inset
tag and give a negative value for the side border you want to remove.
<?xml version="1.0" encoding="utf-8"?>
<inset xmlns:android="http://schemas.android.com/apk/res/android"
android:insetLeft="-2dp">
<shape android:shape="rectangle">
<corners
android:bottomLeftRadius="0dp"
android:bottomRightRadius="5dp"
android:topLeftRadius="0dp"
android:topRightRadius="5dp" />
<stroke
android:width="1dp"
android:color="@color/line_border_box" />
</shape>
</inset>