android - Border on the left side of the button only -
here button_style.xml including button. however, still can't seem border on left. can me here please?
ps - background should transparent
<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android" > <layer-list> <item android:left="2dp"> <shape android:shape="rectangle"> <stroke android:width="1dp" android:color="#999999"/> </shape> </item> </layer-list> </selector>
try this
<?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <item> <shape android:shape="rectangle" > <solid android:color="@android:color/transparent" /> </shape> </item> <item android:bottom="-2dp" android:right="-2dp" android:top="-2dp"> <shape> <solid android:color="@android:color/transparent" /> <stroke android:width="2dp" android:color="#fff" /> </shape> </item> </layer-list>
Comments
Post a Comment