Skip to content

Instantly share code, notes, and snippets.

@binpower93
Created October 19, 2014 00:55
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 binpower93/30447c6d09a49ae50144 to your computer and use it in GitHub Desktop.
Save binpower93/30447c6d09a49ae50144 to your computer and use it in GitHub Desktop.
also for stack overflow
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:id="@+id/lines_served_card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
card_view:cardCornerRadius="4dp"
android:background="@color/white">
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="8dp">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/lines_served"
android:textAppearance="@android:style/TextAppearance.DeviceDefault.Large"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.v7.widget.RecyclerView
android:id="@+id/lines_served_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:isScrollContainer="false"/>
</LinearLayout>
</LinearLayout>
</android.support.v7.widget.CardView>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment