Skip to content

Instantly share code, notes, and snippets.

@madhu314
Created January 21, 2017 18:37
Show Gist options
  • Save madhu314/efcbf3122396d4e6ac0505d9df2434b7 to your computer and use it in GitHub Desktop.
Save madhu314/efcbf3122396d4e6ac0505d9df2434b7 to your computer and use it in GitHub Desktop.
<?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="match_parent"
android:orientation="vertical">
<android.support.v7.widget.RecyclerView
android:id="@+id/recycler"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
</android.support.v7.widget.RecyclerView>
<LinearLayout android:layout_width="match_parent"
android:layout_height="72dp"
android:background="#2a2a2a"
android:gravity="center"
android:orientation="horizontal">
<Button android:id="@+id/addButton" android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Add"/>
<Button android:id="@+id/removeButton" android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Remove"/>
</LinearLayout>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment