Android- Select an item of a GridView programmatically?
问题 I want to perform a click on an item after setAdapter() method. Consider if you have declared and initialized a Button in your Activity globally then you can perform a click on it programmatically from any scope of that activity and the listener will work. I want something similar like that, to be able to perform a click on any item of my GridView . So far i have tried all of the below methods one by one but none of them seems to work, i tried different stack questions but not even a single