james
james

Reputation: 221

Buttons in a GridView

I decided to use a custom GridView for my app, I have used a TextView for each single view in the GridView and everything worked just as it should , but then due to design purposes I decided to change the TextViews to Buttons. Now the problem is the grid's onItemClick doesn't work anymore, any ideas on how to use Buttons in a GridView? What am i doing wrong?

Upvotes: 0

Views: 72

Answers (1)

Booger
Booger

Reputation: 18725

You will need to create a custom adapter, and put your button in that.

You CAN just use the onClick event of the TextView (so, you don't actually need to use a button if you are just trying to capture onClick envent).

Upvotes: 1

Related Questions