On Android it is possible to inflate a layout inside a gridview

0

I am trying to create an e-book reader, in the main Activity should appear a gridview where each position should present a thumbnail of the book cover, below appear the name of the book, author name and publication date: what I expect is something like this:

obs.:Favor to disregard the stars and the radio button just need the image and the three texts.

I'm currently using a Gridview, to place within each position a Linear layout that contains an imageview and three textview.

My question is: Can I inflate a layout within a gridview, or is there another way I can do what I'm looking for?

    
asked by anonymous 18.04.2016 / 21:30

1 answer

0

The best solution here is to use RecyclerView and GridLayoutManager .

The RecyclerView works like a ListView, that is, you will need an Adapter. This Tutorial in Portuguese shows how you can use RecyclerView. It uses LinearLayoutManager. In your case, you will use the GridLayoutManager.

    
18.04.2016 / 22:26