Skip to content

Instantly share code, notes, and snippets.

@pbednarz
Created November 25, 2016 15:06
Show Gist options
  • Save pbednarz/2dea025c4a368aa9675b6b8e8edcd0c4 to your computer and use it in GitHub Desktop.
Save pbednarz/2dea025c4a368aa9675b6b8e8edcd0c4 to your computer and use it in GitHub Desktop.

Revisions

  1. pbednarz created this gist Nov 25, 2016.
    22 changes: 22 additions & 0 deletions blue_stroke_btn.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    <?xml version="1.0" encoding="utf-8"?>
    <selector xmlns:android="http://schemas.android.com/apk/res/android" android:enterFadeDuration="200"
    android:exitFadeDuration="200">
    <item android:state_pressed="true">
    <shape android:shape="rectangle">
    <corners android:radius="5dp"/>
    <solid android:color="@color/selected_blue"/>
    <stroke
    android:width="2dp"
    android:color="@color/selected_blue"/>
    </shape>
    </item>
    <item>
    <shape android:shape="rectangle">
    <corners android:radius="5dp"/>
    <solid android:color="@color/transparent"/>
    <stroke
    android:width="2dp"
    android:color="@color/blue"/>
    </shape>
    </item>
    </selector>