Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialglenn romaniuk
32,520 Points"Converting a ListView to a GridView lesson" gridview not working
I'm trying to complete the lesson "Converting a ListView to a GridView". I'm using android studio. I've done everything as per the lesson. When I run the project and tap on the friends tab nothing displays. I've tried to put a breakpoint in the friendsfragment.java but nothing seems to run in there. In the lesson ben changed "public class FriendsFragment extends ListFragment" to just "extends Fragment". What am i missing here?
1 Answer
glenn romaniuk
32,520 PointsFound problem. In lesson the FriendsFragment is changed to extend from Fragment. Doing that inherits from the wrong Fragments class. Should be android.app.Fragment.