On Mon, Jul 18, 2011 at 12:26 PM, crodgers <[email protected]> wrote: > I am attempting to populate a GridView in a fragment, based on items > chosen in another ListFragment. As each item in the ListFragment is > clicked, I'd like the GridView in the first fragment to reflect the > new choice. > > Currently I am using a listener to grab the clicks from the > ListFragment, creating a new fragment to hold the GridView and setting > an adapter for that GridView. However, the adapter isn't working.
"Isn't working" is an ineffective description of your symptoms. > Is there something in the framework that handles this sort of > situation? Nothing out of the ordinary. What you are describing sounds fine -- presumably, you simply have a bug in your code. Make sure your adapter is returning the correct values from getCount(), make sure that your GridView is visible, etc. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

