I have a TextView and i want to put a different color on the top border (let's say white) I try something like this but doesn't work (put white border to all margins - left,right,top,bottom)
<TextView
android:layout_height="50dip"
android:text="@string/total"
android:background="@drawable/border_top_textview"
android:textColor="#FFFFFF"
android:id="@+id/totalCash"
android:layout_width="match_parent"
android:gravity="center_vertical"
android:textSize="26dip"
android:layout_weight="0.3"
android:textStyle="bold"></TextView>
and the border_top_textview.xml
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item>
<shape android:shape="rectangle">
<stroke android:width="2dp" android:height="2dp" android:color="#FFFFFF" />
<solid android:color="#000000" />
<padding android:top="1dp" android:bottom="1dp" />
</shape></item></layer-list>