Commit 663ddb08 authored by Christopher League's avatar Christopher League
Browse files

update README

parent 36bc25d2
......@@ -44,12 +44,88 @@ Code and instructions for the 2019 LIU Apps Summer Honors Institute
* Binary, hex, & colors
** Learning objectives
- Convert between binary and decimal, and between binary and
- Understand additive color model where red-green-blue can be combined
to convey other hues.
** Tasks
- Demonstrations for this unit are in ~lesson3~ branch.
* Layouts & XML
** Learning objectives
- Construct basic layouts using horizontal and vertical LinearLayout.
- Understand the parameters and options for width, height, weight,
padding, gravity.
- Edit in both Design mode and Text (XML) mode
** Tasks
- Starting from ~lesson4~ branch, build a layout like my FloodGame
options screen, featuring title, play button, two SeekBars
(sliders), and some RadioButtons. (The palettes don't need to show
multiple colors; we'll cover that later in "Custom views.")
* Life cycle & saveInstanceState
** Learning objectives
- Understand the [[][Android Activity Lifecycle]], and some reasons that an
app screen might be suspended or destroyed.
- Know how to enable and navigate Android developer options on a
- Know how to switch between apps on Android, and kill a running app.
** Tasks
- Start with ~lesson5~ branch (which is essentially a solution to
- On your emulator, enable developer options and set "Apps » Don't
keep activities"
- Override ~saveInstanceState~ in the counter app so that we can
maintain the counter between interruptions.
- Illustrate that input widgets maintain their state automatically, as
long as ~super.saveInstanceState~ is invoked.
* Custom views & onDraw
** Learning objectives
- Understand how to use ~Paint~ objects to draw on a canvas, including
fill and stroke styles in different colors.
- Understand the canvas coordinate system, with origin on the upper
- Know how to use a few basic canvas drawing methods, like ~drawRect~
and ~drawCircle~.
** Tasks
- Start with ~lesson6~ branch. The layout includes an object of class
- The custom view contains a boolean instance variable is controlled
by a checkbox.
- Come up with a simple drawing to put in the box, using basic shapes
like rectangles and circles. It should have at least three shapes
and two colors.
- Make /some/ aspect of the drawing optional, so the check box will
affect the drawing in some way.
* Intents & startActivity
** Learning objectives
- Understand how to invoke a new activity with ~startActivity~ in a
typical way (so the back button works).
- Be able to pass data from the previous activity to the new one,
using the ~Intent~ object.
** Tasks
- Start with the scaffolded app in ~lesson7~ branch. It's the counter,
but this time there is a checkbox and a "Verify" button. The idea is
that the user is supposed to predict whether the displayed number is
prime, and then click Verify to see its factors.
- We will need to create the Intent in onClickVerify in MainActivity,
- And then initialize the values in onCreate in FactorActivity.
* A working FloodGame!
- Check out ~lesson8~ and try the items marked TODO in the
MainActivity class.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment