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 trial

Android Android Fragments Introducing Fragments Handling Clicks

lubossytensky
lubossytensky
3,160 Points

list on list

Unfortunarelly I see in my android simulator list on list if i scrollig with page... whats wrong? thanks

lubossytensky
lubossytensky
3,160 Points

So i discover if I comment in MainActivity fragmentTransaction.commit(); I have not two list besides on {on scrollable and one not } But i can't find out why Ben have not this in his videos... What did i wrong

1 Answer

lubossytensky
lubossytensky
3,160 Points

So I answer myself... I left in mainactivity.xml binding fragment

so than is view twice in screen so don't forget in activity_main.xml this <fragment android:layout_width="match_parent" android:layout_height="match_parent" android:name="com.recipe.ListFragment"/>