Skip to content

Instantly share code, notes, and snippets.

@avipars
Created April 13, 2018 11:22
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 avipars/bbbd10418fd2a1fcf998ff4775fc8cea to your computer and use it in GitHub Desktop.
Save avipars/bbbd10418fd2a1fcf998ff4775fc8cea to your computer and use it in GitHub Desktop.
Avoid Overlap RecyclerVIew
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
android:id="@+id/relative"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:context=".MainActivity"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
android:fitsSystemWindows="true">
<android.support.v7.widget.RecyclerView
android:id="@+id/recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="vertical"
android:clipToPadding="false"
android:layout_marginBottom="50dp"/>
<com.startapp.android.publish.ads.banner.Banner
android:id="@+id/startAppBanner"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
adTag="bottom_banner"/>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment