Search code examples
javaandroidgridviewstaggered-gridview

Add text below the image in staggered gridview


I am implementing staggered gridview in one of my app. I am following this tutorial (http://www.technotalkative.com/lazy-productive-android-developer-part-6-staggered-gridview/). but what i want is, adding the text below the image. So can you please tell me how to accomplish this..? I've googled around but cant able to find the right answer.

Thanks in advance.


Solution

  • Steps:

    1. Download given source code.
    2. Include TextView inside row_grid_item.xml which is Step-3 given in tutorial.
    3. Do operations on any views inside getView() method of custom adapter. Even you can include any views inside custom row layout file and do operations onto it.

    (BTW, thanks for referring my article, I am glad!)