GithubHelp home page GithubHelp logo

lab1's Introduction

Lab1

Homework

For homework, we are going to ask you guys to create a simple to do list. You can find the example demo here. To start the lab, fork and clone Lab1. It has all the files from a finished Lab 0.5, which will help you out as a starting point.

To break the homework down into more detail, the specs are:

  • 1 Activity / View
  • 1 Text field with a character limit of 10 characters
  • A button to add a new task
  • Labels for the tasks (which you made in the layouts above, they say "Click the button to go back to activity 1")
  • Delete buttons to delete the tasks that you have added

Some useful hints. First of all, you know most of this stuff, since we just covered it in Lab 0.5. Look back at what we did for reference.

  • The add button and delete buttons will need an onClickListener. The add button will add a new label to the view and the delete buttons will delete labels from the views
  • Check out the layouts tutorial, especially the list views portion since a to-do list can be done with a listview
  • The text field can be added via xml using a textfield item. You can google for the syntax. Here is a place to get you started.
<EditText android:id="@+id/edit_message"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:hint="@string/edit_message" />

Check out the Android tutorial site for more info on text fields

Tim, Evan, and Juliana will be in SF from Thursday - Sunday, which is why we are giving you guys a challenging homework assignment. Google for answers first, then email us, text us, find us in EH. Along with our usual office hours, we will set up another time to either hold Google hangout office hours or have office hours on Sunday night.

lab1's People

Contributors

jnazare avatar lsilverwolf avatar evansimpson avatar

Watchers

James Cloos avatar  avatar Chloe Vilain avatar Rachel Biniaz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.