1. Trang chủ
  2. » Công Nghệ Thông Tin

Bài tập thực hành lập trình cơ bản với adroid bài (4)

1 321 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 1
Dung lượng 331,07 KB

Nội dung

HOMEWORK 3 - Fall 2010 (Due: Thu. Oct 28) CIS493 Mobile Application Development Using Android TODO LIST APPLICATION Write an Android App to implement a simple TODO list. The app displays a ListView showing a numbered sequence of lines representing tasks that you need to perform. The app is controlled by an OPTION MENU offering the following possibilities: 1. Add new entry to the list 2. Delete a task from the list (ask for number and remove) 3. Update the text of a selected task. 4. Save TODO list (fake operation – we still have not done file IO) 5. Close app The main layout of the TODO list should be similar to the following: TODO List: Wed. Oct 21, 2009 – 1:15 pm ENTER DATA HERE… 1. Buy milk & bread at the supermarket 2. Pick up clothes from the cleaner 3. Make a tee-time for Friday at Manankiki GC 4. Buy present- wedding anniversary next saturday Save List Close App Add entry Delete entry Update entry Functionality: 1. Type a new task in the top EditText box. Press Menu button, click on Add entry. 2. Click on a line. The text should be displayed on the EditText box. a. Write over the text, click Menu > Update entry to modify the TODO list value (clear EditText) b. Click on Menu > Delete entry to remove the task from the list (clear EditText). 3. Click on Save List to fake the writing of the list to disk 4. Click on Close to save list and finish application. Comment. Lecture notes on file IO are available as lesson 15 (web page). ListView with numbered tasks OPTION MENU EditText box for entering Task’s text or line number.

Ngày đăng: 09/08/2015, 08:04

TỪ KHÓA LIÊN QUAN

w