android - RecyclerView with GridView -


once write listview demo, listview's items have different types.

item1:

text

pic pic pic

pic pic pic

item2:

text

pic pic

pic pic

item3:

text

pic pic pic

pic pic pic

pic pic pic

...

so override getviewtypecount() , getitemviewtype().it work well. change use recyclerview. there better solution?please me.

use

getitemcount() { //pojo class array size  return mdataset.size(); } 

Comments

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -