M
M
Michael Kim2016-12-10 22:10:42
Java
Michael Kim, 2016-12-10 22:10:42

How to add view to gridview without adapter?

There is a gridview which is filled with an adapter. I need to add a view to it after filling the gridview, which has nothing to do with the rest of the item gridview. Here is an example :
The first element is an icon with a dynamic background, the other elements are regular photos. How to do the same, only with GridView?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2016-12-15
@DrZ0idberg

I would suggest taking a closer look at the adapter 's getItemViewType(int) method . In general, this is what it is for - to draw different types of objects in different ways.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question