I have this line in my code:
myGridView.setChoiceMode(GridView.CHOICE_MODE_MULTIPLE);
It works fine in ICS, but crashes with 2.2 and 2.3.x with the following error:
java.lang.NoSuchMethodError: android.widget.GridView.setChoiceMode
However, look at the docs , tells me that the method is supported from API 1, although it is inherited from AbsListView. I also found this issue that reports a problem without a visible solution
Does anyone now have a workaround to this or have an idea on how to set the selection mode to several for all versions?
thank
source
share