I have GridViewa layout. Activity is populated using Fooviews using advanced BaseAdapter.
When I select an element in this grid, it becomes orange tinted (thus selected). It's good. But I want to access this selection from outside the GridView and its parent activity: from inside the other Viewabove in the layout hierarchy. Therefore, I urge gridView.getSelectedItem(). However, it always returns null.
How can I make this work?
source
share