I want to fill a gridView with buttons. I use a common adapter which I give a list of objects. From these object I created my Buttons in the getView(). The buttons have two states, normal and pressed. Therefore I use a selector.xml.
Generally it works well. My Problem is now that for the first icon in the grid is no pressed state (highlighted state) is shown.
Maybe it has something to do with multiple calling of getView(). The first button is created twice. At the beginning and at the end. I don't change the items afterwards.
Maybe someone can help me, thanks