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 trialJ A
Full Stack JavaScript Techdegree Student 4,646 PointsIs "detailContainer" referring to the element from the original or expanded layout?
detailContainer
is the ID of the Relative Layout in both the original and the expanded layout, so how does the function know which layout is being referred to at the beginning of the transition?
Is it because a view is passed into the onClickListener
that is the first layout that was clicked?
Also would this code still work if the two Relative Layouts in these two files had different ID's? For example, if in the expanded layout file, we have the Relative Layout an ID of detailContainerTwo
?