<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >
    <GridView
              android:id="@+id/gridView"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:clipToPadding="false"
              android:paddingTop="?android:actionBarSize"
              android:numColumns="auto_fit"
              android:stretchMode="columnWidth"
              android:columnWidth="@dimen/thumb_size"
              android:drawSelectorOnTop="true"
              tools:context="com.michaldabski.panoramio.main_activity.MainActivity"
              android:fastScrollEnabled="true"
              tools:listitem="@layout/item_photo"/>

    <include
        layout="@layout/copyright"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignBottom="@id/gridView"/>
</RelativeLayout>
<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    tools:context="com.michaldabski.panoramio.main_activity.MainActivity"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >
    <GridView
              android:id="@+id/gridView"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:clipToPadding="false"
              android:paddingTop="?android:actionBarSize"
              android:numColumns="auto_fit"
              android:stretchMode="columnWidth"
              android:columnWidth="@dimen/thumb_size"
              android:drawSelectorOnTop="true"
              android:fastScrollEnabled="true"
              tools:listitem="@layout/item_photo"/>

    <include
        layout="@layout/copyright"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignBottom="@id/gridView"/>
</RelativeLayout>
Move context of main activity layout to top level
Move context of main activity layout to top level
