Skip to content

Instantly share code, notes, and snippets.

@RyanRamchandar
Last active December 18, 2015 01:28
Show Gist options
  • Save RyanRamchandar/5703833 to your computer and use it in GitHub Desktop.
Save RyanRamchandar/5703833 to your computer and use it in GitHub Desktop.
Layout file and GridAdapter snippets.
//GridItem.xml
...
<ImageView
android:id="@+id/mapImageStarredGrid"
android:layout_width="match_parent"
android:layout_height="175dp"
android:adjustViewBounds="true"
android:scaleType="centerCrop" />
...
//Grid Adapter bindView()
...
Picasso.with(context)
.load(request)
.placeholder(R.color.super_light_grey)
.error(R.color.light_grey)
.into(holder.map);
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment