# Android GridView Tutorial

**URL:** <https://forums.kodeco.com/t/android-gridview-tutorial/18869>\
**Category:** 🎓 Courses & Articles\
**Created:** [August 24, 2016, 1:07pm UTC](https://forums.kodeco.com/t/android-gridview-tutorial/18869 "2016-08-24T13:07:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![brianvoong](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/brianvoong/32/104533_2.png) [@brianvoong](https://forums.kodeco.com/u/brianvoong)\
**Post date:** [August 24, 2016, 1:07pm UTC](https://forums.kodeco.com/t/android-gridview-tutorial/18869/1 "2016-08-24T13:07:01Z")

</div>

These days, people are always being told to relax, go off-grid and put their smartphones down. But where’s the fun in that? I’m here to encourage you not to get off the grid. Instead, get onto our grid—our Android GridView tutorial, that is! Today you’ll learn how to tame this widely-used Android component and construct […]

* * *
 This is a companion discussion topic for the original entry at [https://www.raywenderlich.com/995-android-gridview-tutorial](https://www.raywenderlich.com/995-android-gridview-tutorial)

---

<div class="post-metadata">

**Author:** ![mohsen7105](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/mohsen7105/32/56025_2.png) [@mohsen7105](https://forums.kodeco.com/u/mohsen7105)\
**Post date:** [January 31, 2017, 8:56am UTC](https://forums.kodeco.com/t/android-gridview-tutorial/18869/2 "2017-01-31T08:56:37Z")

</div>

very Good Grid View tutorial! thanks

---

<div class="post-metadata">

**Author:** ![deigray](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/deigray/32/68349_2.png) [@deigray](https://forums.kodeco.com/u/deigray)\
**Post date:** [May 27, 2017, 10:02pm UTC](https://forums.kodeco.com/t/android-gridview-tutorial/18869/3 "2017-05-27T22:02:04Z")

</div>

Really good tutorial.  
Just one thing :  
your ViewHolder class

> private class ViewHolder {  
> private final TextView nameTextView;  
> private final TextView authorTextView;  
> private final ImageView imageViewCoverArt;  
> private final ImageView imageViewFavorite;

and then references call :

> viewHolder.imageViewCoverArt.setImageResource(book.getImageResource());  
> viewHolder.nameTextView.setText(mContext.getString(book.getName()));  
> viewHolder.authorTextView.setText(mContext.getString(book.getAuthor()));  
> viewHolder.imageViewFavorite.setImageResource(book.getIsFavorite() ? R.drawable.star\_enabled : R.drawable.star\_disabled);

Does it works ? 😛

Well great work, really nice tips, thank you !

---

<div class="post-metadata">

**Author:** ![mike](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/mike/32/102075_2.png) [@mike](https://forums.kodeco.com/u/mike)\
**Post date:** [July 2, 2017, 8:00pm UTC](https://forums.kodeco.com/t/android-gridview-tutorial/18869/4 "2017-07-02T20:00:04Z")

</div>

Great tutorial! Explained very clearly, especially the logic for every step. As an iOS Developer, this is really one of the best explained tutorials I 've ever seen!

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [July 3, 2017, 1:43pm UTC](https://forums.kodeco.com/t/android-gridview-tutorial/18869/5 "2017-07-03T13:43:37Z")

</div>

This tutorial is more than six months old, so questions are no longer supported at the moment for it. We will update it as soon as possible. Thank you! :]

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [July 3, 2017, 1:43pm UTC](https://forums.kodeco.com/t/android-gridview-tutorial/18869/6 "2017-07-03T13:43:54Z")

</div>

Closed on July 3, 2017, 1:43pm UTC


