Skip to content

Instantly share code, notes, and snippets.

@vkoppaka
Created August 15, 2015 16:00
Show Gist options
  • Save vkoppaka/2a7a61e8069cfcb9ad7a to your computer and use it in GitHub Desktop.
Save vkoppaka/2a7a61e8069cfcb9ad7a to your computer and use it in GitHub Desktop.
RecyclerView Main AXML
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:local="http://schemas.android.com/apk/res-auto"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<include
android:id="@+id/toolbar"
layout="@layout/toolbar" />
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/main_content"
android:layout_below="@id/toolbar">
<android.support.v7.widget.RecyclerView
android:id="@+id/recyclerView"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
</RelativeLayout>
@ramos89
Copy link

ramos89 commented Aug 26, 2017

I used the above code in VS 2017 community, i am getting blue squiggly lines & errors under android:layout_below="@id/toolbar" layout="@layout/toolbar" , please update your code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment