5COSC005W - Tutorial 2 Exercises

As part of this tutorial for this week, you should complete ALL the tasks described in the following links and specifications: (make sure that you ask questions to your tutor for anything that you do not understand or if you are stuck at any point):

(Important Note: Any reference in the exercises to the android.support.constraint.ConstraintLayout XML tag should be replaced by androidx.constraintlayout.widget.ConstraintLayout)

  1. The Layout Editor
    For this exercise for Task 1.5 instead of choosing Create layout x-large Variation (a legacy option found in Android 3.1 and lower) you should choose Create Other->Smallest Screen Width then type 600 in the textbox and OK (see slides 59-65).
  2. Text and scrolling views
  3. Clickable images
    You should complete the Coding Challenge as well as this is needed in the next exercise 4.
    Extra Challenge: After completing the Coding Challenge modify your app so that the user can add more than one items in the shopping cart and that these are displayed in the OrderActivity when the shopping button is pressed.
  4. Input controls

The material for these tasks is created by Google, used under a Creative Commons Attribution 4.0 International license.