Skip to content

Instantly share code, notes, and snippets.

@arunmdavid
Created March 2, 2016 11:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arunmdavid/70a0fb05a4c32a015713 to your computer and use it in GitHub Desktop.
Save arunmdavid/70a0fb05a4c32a015713 to your computer and use it in GitHub Desktop.
Text Background Strike
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"
>
<item android:height="15dp" android:top="-2dp" android:left="-2dp" android:right="-2dp">
<shape>
<stroke android:color="#EEEEEE" android:width="1dp"/>
</shape>
</item>
</layer-list>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:background="@drawable/bg_strike"
android:gravity="center">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/white"
android:padding="5dp"
android:text="OR"
android:textAlignment="center" />
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment