I have a gridview that just needs to hold 4 buttons, how ever I keep getting an operation not supported in AdapterView error when executing. Can you even fill a gridview through xml?
You cannot add children to a GridView
in XML. You need to create an appropriate Adapter
and associate it with the GridView
via setAdapter()
.
Most likely, if you only have four buttons, you do not want a GridView
in the first place.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With