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 trialJovy Ong
Front End Web Development Techdegree Student 14,858 PointsWhy opt to use RelativeLayout instead of ConstraintLayout here?
I have experience in working both with RelativeLayout and ConstraintLayout. ConstraintLayout is far easier to work with, more powerful, and is newer than RelativeLayout so why do we still use RelativeLayout here?
3 Answers
Ben Deitch
Treehouse TeacherHey Jovy! Mostly it's just because RelativeLayout is more beginner friendly. Since this is the very first Android course we wanted to spend most of it teaching the fundamentals of how to create/run an Android app without getting too much into anything else. Either layout will work, though we save learning about ConstraintLayouts for the next course :)
Urgent Nkala
8,772 PointsHave you tried using it when having buttons and textViews side by side on an activity layout
Jovy Ong
Front End Web Development Techdegree Student 14,858 PointsYes. As far as I can visualize, that can done with ConstraintLayouts with the same amount (or less) of work. I mean, it's pretty similar.