Skip to content

Instantly share code, notes, and snippets.

View ancazapuc9's full-sized avatar

Anca Zapuc ancazapuc9

  • Freelancer
  • Timisoara, Romania
View GitHub Profile
@ancazapuc9
ancazapuc9 / gist:de4f926a93965b7cea8dc4f400243e0d
Created June 24, 2019 13:41 — forked from patrickhammond/gist:7598623
Adds list dividers between children in a linear layout. showDividers takes a set of flags (ex: you can specify beginning|middle|end to get dividers at the start of the layout, through the layout, and at the end of the layout. API 11+ http://developer.android.com/reference/android/widget/LinearLayout.html#setShowDividers(int)
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:showDividers="middle"
android:divider="?android:listDivider"
android:dividerPadding="16dp">
</LinearLayout>