I created a gridview
with a custom ArrayAdapter
. Inside of the gridView
is a couple of TextView
s, an EditText
and a Spinner
. Everything was going fine until I added listeners to the Spinner
and the EditText
. Aside from the trouble of getting these to work (a lot of issues with the recycling) now it is lagging quite heavily. I read around and it seems that this is an inherent issue.
There is up to 16 items. Doing this manually in a Gridlayout or something would cause a ton of manual repeated work, which is why I went with a GridView and adapter. But the performance issues is a major problem.
So is there a way I can duplicate the functionality of a GridView
without the issues that I am running into?
If someone thinks they can solve my performance issues with the current code I am happy to post. It is pretty standard ArrayAdapter
using the viewholder pattern. Thanks
UPDATE:
Ok, so I ended up just going with the RecyclerView
using the pattern laid out in this accepted answer Saving EditText content in RecyclerView After some tweaking to my code I have gotten rid of the lag.