Android: Stroke Left Side Of Button Only
I'm trying to draw highlight '3D' lines on a button using a stroke. How do I do this? The below chunk from my custom_button.xml selector is for the default button state. I'm expect
Solution 1:
You can try this
<?xml version="1.0" encoding="utf-8"?><layer-listxmlns:android="http://schemas.android.com/apk/res/android" ><itemandroid:bottom="-2dp"android:right="-2dp"android:top="-2dp"><shape><solidandroid:color="@android:color/transparent" /><strokeandroid:width="1dp"android:color="#FF8888" /></shape></item><itemandroid:drawable="@drawable/shape2"android:left="1dp"></item></layer-list>
Where @drawable/shape2
is the shape you specified above
result:
Post a Comment for "Android: Stroke Left Side Of Button Only"