아주대학교 LifecareScienceLAB Android Seminar 2 nd class Android Software Development 2011/04/13 – p.m. 06:00 – 팔달관 409 호 아주대학교.

Slides:



Advertisements
Similar presentations
Android User Interface
Advertisements

Programming with Android: Widgets and Events Luca Bedogni Marco Di Felice Dipartimento di Scienze dell’Informazione Università di Bologna.
 User Interface - Raeha Sandalwala.  Introduction to UI  Layouts  UI Controls  Menus and ‘Toasts’  Notifications  Other interesting UIs ◦ ListView.
User Interface Classes.  Design Principles  Views & Layouts  Event Handling  Menus  Dialogs.
Application Fundamentals. See: developer.android.com/guide/developing/building/index.html.
User Interface Android Applications. Activities An activity presents a visual user interface. Each activity is given a default window to draw in. The.
Android Form Elements. Views Provide common UI functionality Form elements: text area, button, radio button, checkbox, dropdown list, etc. Date and time.
By: Jeremy Smith.  Introduction  Droid Draw  Add XML file  Layouts  LinearLayout  RelativeLayout  Objects  Notifications  Toast  Status Bar.
Introducing the Sudoku Example
1 Mobile Computing Monetizing An App Copyright 2014 by Janson Industries.
1 Announcements Homework #2 due Feb 7 at 1:30pm Submit the entire Eclipse project in Blackboard Please fill out the when2meets when your Project Manager.
1/29/ Android Programming: FrameLayout By Dr. Ramji M. Makwana Professor and Head, Computer Engineering Department A.D. Patel.
전광판 만들기 UNIT 04 로봇 SW 콘텐츠 교육원 조용수. 학습 목표 Layout XML 이란 ? 기본 XML 속성 Text View 2.
Programming Mobile Applications with Android September, Albacete, Spain Jesus Martínez-Gómez.
Android - Broadcast Receivers
Programming with Android: Layouts, Widgets and Events Luca Bedogni Marco Di Felice Dipartimento di Scienze dell’Informazione Università di Bologna.
User Interfaces: Part 1 (View Groups and Layouts).
Application Development for mobile Devices
Import import android.graphics.Bitmap; import android.widget.ImageView;
1 Introducing Activity and Intent. 2 Memory LinearLayout, weight=2 LinearLayout, weight=1 TextView ListView.
ANDROID – DRAWING IMAGES – SIMPLE EXAMPLE IN INTERFACE AND EVENT HANDLING L. Grewe.
Android App Basics Dr. David Janzen Except as otherwise noted, the content of this presentation is licensed under the Creative Commons Attribution 2.5.
안드로이드 앱 프로그래밍 네트워킹 김준호.
9 주 실습강의 XML Visualization(1) 학기, 소프트웨어 설계 및 실험 ( Ⅰ )
Video Games list lab 6  At the end of this lab you will be expected to know:  What Views, View Groups, Layouts, and Widgets are and how they relate to.
HW#9 Clues CSCI 571 Fall, HW#9 Prototype
MOBILE COMPUTING D10K-7D02 MC05: Android UI Design Dr. Setiawan Hadi, M.Sc.CS. Program Studi S-1 Teknik Informatika FMIPA Universitas Padjadjaran.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 실 습실 습 7 WEEK 1 – 구조체 (STRUCTURES)
Copyright© Jeffrey Jongko, Ateneo de Manila University Deconstructing HelloWorld.
GUI Components 1 Fall 2012 CS2302: Programming Principles.
목차 한국기술교육대학교 강사: 김 영 준 ㈜헬로앱스 1일차 아두이노 제어 실습
아주대학교 LifecareScienceLAB Android Seminar 3 rd class Android Software Development 2011/05/04 – p.m. 06:00 – 팔달관 409 호 아주대학교.
CHAP 14. 프로세스와 스레드. © 2012 생능출판사 All rights reserved 다중 스레딩 하나의 애플리케이션이 동시에 여러 가지 작업을 하 는 것 이들 작업은 스레드 (thread) 라고 불린다.
Building User Interfaces Basic Applications
BUILDING A SIMPLE USER INTERFACE. In this lesson, you create a layout in XML that includes a text field and a button. In the next lesson, your app responds.
CHAP 7. 메뉴와 대화상자. © 2012 생능출판사 All rights reserved 메뉴의 종류 옵션 메뉴 : 사용자가 MENU 키를 누를 때 나타난다. 컨텍스트 메뉴 : 컨텍스트 메뉴는 사용자가 화면을 일정 시간 이상으로 길게 누르면 나타나는 메뉴이다.
Android 基本 I/O. 基本 I/O 介面元件 在此節中主要介紹常見的 I/O 使用者介 面元件 – Button, TextView, 以及 EditText , 學習者可以學會: – Android 的視窗表單設計 res/layout/main.xml – Android SDK –
ANDROID LAYOUTS AND WIDGETS. Slide 2 Introduction Parts of the Android screen Sizing widgets and fonts Layouts and their characteristics Buttons, checkboxes.
You have to remember that  To create an AVD(Android Virtual Device)  The Structure of Android Project  XML Layout  The advantage of XML Layout  Android.
CMPE419 Mobile Application Development Asst.Prof.Dr.Ahmet Ünveren SPRING Computer Engineering Department Asst.Prof.Dr.Ahmet Ünveren
CHAP 8. 그래픽. © 2012 생능출판사 All rights reserved 안드로이드에서의 그래픽 XML 파일로 그래픽이나 애니메이션을 정의한다. 그 리는 작업은 안드로이드 시스템이 담당한다. onDraw() 메소드 안에 draw...() 와 같은 메소드를 호.
Cosc 5/4730 Support design library. Support Design library Adds (API 9+) back support to a number of 5.0 lollipop widgets and material design pieces –
Android apps development - Eclipse, Android SDK, and ADT plugin Introduction of.
CMPE419 Mobile Application Development Asst.Prof.Dr.Ahmet Ünveren SPRING Computer Engineering Department Asst.Prof.Dr.Ahmet Ünveren
Lab7 – Appendix.
Lecture 3 Zablon Ochomo Android Layouts Lecture 3 Zablon Ochomo
Android N Amanquah.
Android Programming Lecture 3.
Mobile Software Development for Android - I397
Android Widgets 1 7 August 2018
Creation of an Android App By Keith Lynn
Android Introduction Hello Views Part 1.
ITEC535 – Mobile Programming
Android App Computations
CIS 470 Mobile App Development
CS323 Android Model-View-Controller Architecture
CA16R405 - Mobile Application Development (Theory)
Building User Interfaces Basic Applications
GUI Components.
BMI Android Application will take weight and height from the users to calculate Body Mass Index (BMI) with the information, whether user is underweight,
Note Q) How to format code in Enclipse? A) Ctrl + i
Android Developer Fundamentals V2
CIS 470 Mobile App Development
CIS 470 Mobile App Development
Korea Software HRD Center
Objects First with Java
Building a Simple User Interface
User Interface Screen Elements
Android Sensor Programming
Android Sensor Programming
Presentation transcript:

아주대학교 LifecareScienceLAB Android Seminar 2 nd class Android Software Development 2011/04/13 – p.m. 06:00 – 팔달관 409 호 아주대학교

Review  My First Android Application  Hello World  프로젝트 생성 방법 학습  Simulator 실행

My First Android Application

Contents List Android User Interface Widget TextView, Button, EditText Layout Software Development Software Design

아주대학교 ANDROID User Interface Widget TextView, Button, EditText Layout

User Interface  User Interface of Android Java  View & ViewGroup  View Hierarchy ViewGroup View

View Object 안드로이드 플랫폼 상의 사용자 인터페 이스를 표현하는 기본단위 SubClass : Widget Button, TextField, etc… ViewGroup Object 안드로이드 플랫폼 상의 View 와 ViewGroup 의 묶음 단위 SubClass : Layout Linear, Relative, Tabular, etc… User Interface

 View & ViewGroup LinearLayout Button LinearLayout Button

User Interface  Activity  안드로이드에서의 과제 / 작업의 단위  Widget 과 Layout 을 제어한다.  android.app.Activity Class  응용프로그램의 각 화면마다 Activity 를 정의하고 구현하는 데 많은 시간을 들이게 된다.  Example  시동 / 스플래시 화면  주 메뉴 화면  게임 플레이 화면  고득점 화면  도음말 / 프로그램 정보 화면 시동 / 스플래시 Activity 주 메뉴 Activity 도움말 / 프로그램 정보 Activity 게임플레이 Activity 고득점 Activity

User Interface Layout Hierarchy Activity Hierarchy Control

Widget  android.widget 패키지  TextView  화면에 문자를 출력  Button  사용자의 선택 입력  EditText  문자 입력 View Object 안드로이드 플랫폼 상의 사용자 인터페 이스를 표현하는 기본단위 Button, TextField, etc…

Widget  Widget 사용하기 1  xml 파일에서 정의 후 Activity 에서 ID 를 찾는다. 1. [project]->[res]->[layout]->[main.xml] 에 TextView 추가 2. Activity 에서 TextView 선언 3. Activity 에서 findViewById 메서드로 할당  레이아웃 (xml) 과 소스코드 (activity) 를 연결

Widget  Widget 사용하기 2  Activity 에서 생성 후 Layout 에 표시한다. 1. Activity 에서 TextView 생성  new 메서드 사용 2. TextView 객체를 ContentView 로 생성  setContentView 메서드 사용

Widget  Listener (implementation in Activity)  객체에서 Event 가 발생하였을 때 이를 감지하고 수용하여 실행되는 함수  Ex.) Touch, KeyPress, SensorDataReceive, …  Properties (setup in xml file)  Widget 의 속성  Ex.) Size, Padding, ImageResource, …

Widget  TextView, Button, EditText 를 이용 하여 버튼을 누르 면 편집한 문자열 이 출력되는 예제 main.xml →

Widget ↓ Activity Class

Widget  Properties

Widget  Properties <TextView android:textSize="40dp" android:layout_height="wrap_content" android:layout_width="fill_parent" android:gravity="center" android:layout_weight="1" android:text="Massage" > <EditText android:textSize="20dp" android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="Enter Text" android:layout_weight="1" > <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:layout_weight="0" > <Button android:layout_width="wrap_content" android:layout_gravity="center" android:textSize="20dp" android:layout_height="wrap_content" android:layout_weight="0" android:text="Refresh" >

Layout 웹 디자이너들이 HTML 을 사용하는 것과 비슷하게, 안드로이드 응용프로 그램의 사용자 인터페이스 디자이너는 XML 을 이용한다.  종류  Linear Layout  View 들을 차곡차곡 쌓는 배치 ( 가장 많이 사용 )  Relative Layout  부모와 자식, 자식과 자식간의 상대적인 배치  Frame Layout  좌상단에 겹쳐서 쌓는 배치  Table Layout  표형태로 배치

아주대학교 SOFTWARE DEVELOPMENT Software Design

Design Tool  State Diagram  프로그램의 상태를 정의한 상태간의 흐름도  Structure Chart  기능 중심의 함수 구조도  Flow Chart  데이터 흐름 중심의 함수 흐름도  UML :: Class Diagram  객체 중심의 클래스 구조도  UML :: Sequence Diagram  순차 중심의 객체와 함수의 흐름도

State Diagram Not Playing, At the beginning PlayingPaused Play Pause Stop Pause Stop

Structure Chart main process Input ouput sub process 2 sub process 1 sub process 3 print

Flow Chart i <= 0 Turn on All LED Output Data in Array[i] to LED i++ False True Add Random Value to Array Array Size + 1 START i <= 0 i < Array Size? Turn on All LED Input Data from Button False True Array[i] == Input? True i++ Clear Array Array Size <= 0 Clear Array Array Size <= 0 False i <= 0 i < Array Size?

Class Diagram Class Explain Builder 문서를 구성하기 위한 메소드를 결정하는 추상 클래스 Director 한 개의 문서를 만드는 클래스 TextBuilder 일반 텍스트 ( 보통의 문자열 ) 를 이용해서 문서를 만드는 클래스 HTMLBuilder HTML 파일을 이용해서 문서를 만드는 클래스 Main 동작 테스트용 클래스 Builder makeTitle makeString makeItems close TextBuilder buffer makeTitle makeString makeItems close getResult makeTitle makeString makeItems close getResult HTMLBuilder Director builder construct filename writer Uses ▲ Main Uses ▶ Uses ▲

Sequence Diagram :Client:Server:Device work open print close write