How to border only left, top and bottom for TextView
android
Solution
This is a quick solution (probably dumb), add `android:translationX="2dp"` on your `TextView` and you can add `android:paddingRight="2dp"` to make up for lost space.
Problem
Here is my coding. Here is design blue color for TextView's 4 border. What I want is to design only for 3 borders (top, left and bottom). ``` <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_pressed="true" > <shape> <solid android:color="#449def" /> <stroke android:width="1dp" android:color="#2f6699" /> <corners android:radius="0dp" /> <padding android:left="5dp" android:top="5dp" android:right="5dp" android:bottom="5dp" /> </shape> </item> <item> <shape> <gradient android:startColor="#ffffff" android:endColor="#ffffff" android:angle="270" /> <stroke android:width="1dp" android:color="#2f6699" /> <corners android:radius="0dp" /> <padding android:left="5dp" android:top="5dp" android:right="5dp" android:bottom="5dp" /> </shape> </item> </selector> ```