Upgrade to Pro — share decks privately, control downloads, hide ads and more …

MAD Week 4 Lab 2

MAD Week 4 Lab 2

60c54dec6329cd29ecf6ce8fa2584e6c?s=128

Marina Tanasyuk

February 28, 2020
Tweet

Transcript

  1. Mobile App Design Week 4: Android Lab 2

  2. Mid-course survey https://www.surveymonkey.com/r/AndroidMADFeb20

  3. Common questions - Border rounded_border_filled.xml in /drawable folder: TextView in

    Layout:
  4. Common questions - Toggling

  5. Layout: Activity: Toggling - Boolean Solution

  6. Layout: Activity: Toggling - Two Views Solution

  7. Thoughts / Questions / Concerns?

  8. Technical Labs - Building out a Flashcard App Lab 1:

    Build Layouts and Handle User Interaction Lab 2: Create content and take users through different flows Lab 3: Save data Lab 4: Polish App with animations and styling
  9. Lab 2 - Flashcard App

  10. New Concept - Intents ActivityA ActivityB Intent intent = new

    Intent(ActivityA.this, ActivityB.class); startActivity(intent);
  11. Intents - Pass / Receive Data // in ActivityA: Intent

    intent = new Intent(ActivityA.this, ActivityB.class); intent.putExtra("key", "some info to send"); startActivity(intent); // in ActivityB: protected void onCreate(Bundle savedInstanceState) { … String data = getIntent().getStringExtra(“key"); // data = “some info to send” … }
  12. New Concept - Resources and Drawables

  13. Thoughts / Questions / Concerns?

  14. Lab 2 - Flashcard App

  15. New Concept - Activity Lifecycle closeIcon.setOnClickListener { finish() }

  16. Lab 2 - Flashcard App New concept - EditText

  17. Thoughts / Questions / Concerns?

  18. Working on Labs - Breakout rooms • The guide is

    on Lab tab for Week 4 • Required tasks - due by Friday, March 6th at 11:59pm PST • Optionals are optional • Turn on your camera • Introduce yourself • Support each other
  19. How to ask questions? 3. Slack @android-help 4. https://discussions.codepath.com/ (for

    when outside the class) 1. Ask people in your group 2. Ask for help from TAs and Instructors:
  20. Let’s get started!