Skip to content

Instantly share code, notes, and snippets.

@bdiegel
Created November 2, 2015 17:11
Show Gist options
  • Save bdiegel/a1d85f97e7be24568e00 to your computer and use it in GitHub Desktop.
Save bdiegel/a1d85f97e7be24568e00 to your computer and use it in GitHub Desktop.
Android_Custom_Divider

Create custom divider

Use styles to create custom divider

<style name="Divider">
    <item name="android:layout_width">match_parent</item>
    <item name="android:layout_height">1dp</item>
    <item name="android:background">?android:attr/listDivider</item>
</style>

Using the style with View in a layout:

<View style="@style/Divider"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment