Fix bug that the default case on Touch event should not execute onTouchUp
Updates gradle plugin version and gradle version to latest

This allows the project to be imported with the latest Android Studio version (0.5.2).
Also removes duplication between build.gradle files
Fixed setAdapter bug

adapter should be mAdapter, otherwise when adding header view, mItemCount will get the original adapter's getCount(), which doesn't count the number of headers and/or footers. Later on in layoutChildren() method it'll throw IllegalStateException, because the number of mItemCount and mAdapter.getCount() will never be equal.
Merge pull request #78 from xrigau/update_build_tools

Merged pull request #78 - Updates gradle plugin version and gradle version to latest
Android build tools 0.9.2 - explicitly tested version perferred over auto updating
Merge pull request #85 from lzanita09/patch-1

Merged pull request #86 - Fixed setAdapter bug
Further fixes for PR #85 - bugs in setAdapter
Updated Gradle to 1.11 - you'll need to use AndroidStudio 0.5.+ to locally build the library
Sample: Added an example of the grid in a fragment in an attempt to replicate #45
Added guard against exception detected in #45
change default to false
Fix the adapter index to getItemId() to include the mFirstPosition offset.
Fix for "NPE onSizeChanged" #41
Moved compileSdkVersion and buildToolsVersion on top level build.gradle
Updated dependency to com.android.support:support-v4:19.1.+ and changed compileSdkVersion/buildToolsVersion references.
Support for long click and pressed state

Based on code from AbsListView, added support for long press so that an
onItemLongClickListener will be called for a long press on cards, and
added the pressed state for cards when they are clicked or long-clicked.
Looking at AOSP ListView.java and add some missing call to invokeOnItemScrollListener
LayoutParams casting issue when recycling state

If the StaggeredGridView has a headerview but no content there will a casting exception when casting
AbsListView.LayoutParams to StaggeredGridView.LayoutParams. This patch set confirms that the params
are an instance of StaggeredGridView.LayoutParams before proceeding.
Merge pull request #91 from ajpolt/master

Merged pull request #91 - Fix for "NPE onSizeChanged" #41
Merge pull request #67 from hijamoya/dev

Merged pull request #67 - Fix bug that the default case on Touch event