mirror of
https://github.com/Astatin3/IntroToWebAuthoring.git
synced 2026-06-08 16:18:01 -06:00
Get constraint layout work with xml
This commit is contained in:
+28
-2
@@ -1,2 +1,28 @@
|
||||
<ColoredRectView r="20" g="40" b="60" />
|
||||
<!-- </ColoredRectView> -->
|
||||
<ConstraintLayout>
|
||||
<BoxView margin="10" align_top_to_top="parent" align_left_to_left="parent">
|
||||
<ColoredRectView r="123" g="12" b="34" />
|
||||
</BoxView>
|
||||
|
||||
<BoxView
|
||||
margin_left="10"
|
||||
margin_right="10"
|
||||
align_top_to_top="parent"
|
||||
align_left_to_left="parent"
|
||||
align_bottom_to_bottom="parent"
|
||||
align_right_to_right="parent"
|
||||
width="400"
|
||||
height="parent"
|
||||
>
|
||||
<ColoredRectView r="30" g="30" b="30" />
|
||||
</BoxView>
|
||||
|
||||
<BoxView
|
||||
margin="10"
|
||||
align_top_to_top="parent"
|
||||
align_left_to_right="2"
|
||||
align_bottom_to_bottom="parent"
|
||||
width="200"
|
||||
>
|
||||
<ColoredRectView r="123" g="125" b="34" />
|
||||
</BoxView>
|
||||
</ConstraintLayout>
|
||||
|
||||
Reference in New Issue
Block a user