Image of required layouts
Objective: Create ConstraintLayouts for each of the views in the attached pdf.
You don't need to make a new app for each view. Make a new layout.xml file and use setContentView() to display each so you can take your screenshot.
Bonus: add buttons to navigate to each layout (using a new Activity for each)
Super bonus: use a single activity and cycle through the 7 fragments
Demo the following:
A ConstraintLayout with a View set in each corner
A ConstraintLayout with a View centered in the top, and two View as shown in the middle with corners touching
A ConstraintLayout with
a background color
a Guideline that is used to align
a TextView,
a Button which fills width from guideline to right edge
, and two Views of your choice
both centered horizontally between guideline and right edge
centered vertically on screen
other adjacent to bottom
A ConstraintLayout with overlapping Views as shown
A ConstraintLayout with a ScrollView that contains a TextView. The TextView contains very long text (you must scroll to see all of it).
A ConstraintLayout with a Guideline and a HorizontalScrollView. This ScrollView contains many Buttons (you have to scroll to see them all).
Do not use a ScrollView with horizontal orientation
A ConstraintLayout with a Guideline, TextView, and nested layout file(i.e. ConstraintLayout or LinearLayout) that contains a Button and ScrollView with many checkboxes (as shown).
Resources
Useful Widget: Guideline
ScrollView and HorizontalScrollView
Mr. Kosek's ScrollView examples:
https://o7planning.org/12675/android-scrollview-horizontalscrollview
Build each layout
Screen shot each layout
Build the .apk file
Rename the .apk file
PeriodLabNumberLastFirstCustomName.apk
P8L04aTraDanLayouts.apk
Submit assignment
7 images (or video demonstrating 7 layouts)
.apk file
Layouts: 7 layout .xml files
Each layout has an event which will open to the next layout by launching new Activities
Or super challenge: Have a main Activity which will cycle through the 7 fragments which will display the 7 layouts
A different challenge: Dynamically add widgets to your ScrollViews
Submit as Lab04b
P8L04bTraDanLayouts.apk
Submit video