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 trialJessie Burton
5,198 PointsRelativeLayout?
Why is the video in relativelayout and mine defaulted to contraintlayout? I dont have the options to change the padding?
1 Answer
Jonathan Grieve
Treehouse Moderator 91,253 PointsHi Jessie,
I've sometimes found this too, when I've been unable to follow a course because I'm using the wrong layout structure.
I'm not 100% sure but I think it depends on what "activity" you choose when you start an activity. To get going, try choosing a blank activity for RelativeLayouts :)
Failing this you should be able to switch layouts by replacing the opening and closing XML Tags to the following
<RelativeLayout
</RelativeLayout>