전광판 만들기 UNIT 04 로봇 SW 콘텐츠 교육원 조용수. 학습 목표 Layout XML 이란 ? 기본 XML 속성 Text View 2.

Slides:



Advertisements
Similar presentations
Who Am I And Why Am I Here I’m professor Stephen Fickas in CIS – you can call me Steve. I have a research group that works with mobile devices (since 1995!)
Advertisements

Presenting Lists of Data. Lists of Data Issues involved – unknown number of elements – allowing the user to scroll Data sources – most common ArrayList.
Android: Layouts David Meredith
Custom Views, Drawing, Styles, Themes, ViewProperties, Animations, oh my!
Android development the first app. Andoid vs iOS which is better? Short answer: neither Proponents on both sides For an iOS side, see this article on.
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Modify Android Objects Using.
PROG Mobile Java Application Development PROG Mobile Java Application Development Developing Android Apps: Components & Layout.
Mobile Programming Lecture 2 Layouts, Widgets, Toasts, and Event Handling.
Android Layouts. Layouts Define the user interface for an activity Layouts are defined in.xml files – within /res/layout folder – different layout can.
ANDROID – INTERFACE AND LAYOUT L. Grewe. Interfaces: Two Alternatives Code or XML  You have two ways you can create the interface(s) of your Application.
Linear Layout, Screen Support, and Events. Linear Layout Supports 2 orientations: 1.Horizontal 2.Vertical I often get confused with how each orientation.
LESSON 4 Formatting a Worksheet. Borders are often used to separate different groups of data. 1. True 2. False
로봇 전화번호부 4/4 UNIT 12 로봇 SW 콘텐츠 교육원 조용수. 학습 목표 뷰 홀더 패턴을 사용할 수 있다. 토스트를 사용할 수 있다. 클릭 이벤트를 처리할 수 있다. 2.
1/29/ Android Programming: FrameLayout By Dr. Ramji M. Makwana Professor and Head, Computer Engineering Department A.D. Patel.
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
로봇을 조종하자 3/4 UNIT 17 로봇 SW 콘텐츠 교육원 조용수. 학습 목표 스마트 폰의 센서를 사용할 수 있다. 2.
로봇 모션 편집기 4/4 UNIT 25 로봇 SW 콘텐츠 교육원 조용수. 학습 목표 에디트 텍스트를 사용할 수 있다. 아이템을 삭제할 수 있다. 아이템을 편집할 수 있다. 2.
Copyright© Jeffrey Jongko, Ateneo de Manila University Basic Views and Layouts.
로봇 모니터링 1/2 UNIT 20 로봇 SW 콘텐츠 교육원 조용수. 학습 목표 Message Queue Handler 2.
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.
MOBILE COMPUTING D10K-7D02 MC04: Layouts Dr. Setiawan Hadi, M.Sc.CS. Program Studi S-1 Teknik Informatika FMIPA Universitas Padjadjaran.
Android Development: Basic Widgets Richard S. Stansbury 2015.
Android View Stuff. TextViews Display text Display images???
11/12/2015 Box Model Reed Crouch. 11/12/2015  HTML elements can be considered as boxes. In CSS, the term "box model" is used when referring to layout.
로봇을 조종하자 4/4 UNIT 18 로봇 SW 콘텐츠 교육원 조용수. 학습 목표 Intent Activity 호출 2.
CS378 - Mobile Computing User Interface Basics. User Interface Elements View – Control – ViewGroup Layout Widget (Compound Control) Many pre built Views.
로봇을 조종하자 1/5 UNIT 14 로봇 SW 콘텐츠 교육원 조용수. 학습 목표 터치 이벤트를 처리할 수 있다. 2.
Custom Widget 2 UNIT 27 로봇 SW 콘텐츠 교육원 조용수. 학습 목표 Custom Widget –Canvas 를 이용하여 Custom Widget 을 만든다. 2.
Android View Stuff. TextViews Display text Display images???
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.
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
CMPE419 Mobile Application Development Asst.Prof.Dr.Ahmet Ünveren SPRING Computer Engineering Department Asst.Prof.Dr.Ahmet Ünveren
Resources. Android Resources We’ve already talked about the different types of Android Resources DirectoryResource Type anim/XML files that define tween.
Android 9: Layouts Kirk Scott.
Lecture 3 Zablon Ochomo Android Layouts Lecture 3 Zablon Ochomo
Android Layouts 8 May 2018 S.RENUKADEVI/AP/SCD/ANDROID LAYOUTS 1.
GUI Programming Fundamentals
Mobile Software Development for Android - I397
Linear Layout, Screen Support, and Events
Android Basic XML Layouts
Android 9: Layouts Kirk Scott.
Android Widgets 1 7 August 2018
HNDIT2417 Mobile Application Development
CIS 470 Mobile App Development
CS323 Android Model-View-Controller Architecture
Android Layout Basics Topics
CIS 470 Mobile App Development
CMPE419 Mobile Application Development
CA16R405 - Mobile Application Development (Theory)
Mobile Computing With Android ACST 4550 Android Layouts
Chapter 2: Model View Controller, GUI Components, Events
UNIT 08 그림책 만들기 2/2 로봇 SW 콘텐츠 교육원 조용수.
Note Q) How to format code in Enclipse? A) Ctrl + i
Android Developer Fundamentals V2 Lesson 4
Android Developer Fundamentals V2
CIS 470 Mobile App Development
CIS 470 Mobile App Development
CMPE419 Mobile Application Development
Adding Components to Activity
Korea Software HRD Center
Building a Simple User Interface
CMPE419 Mobile Application Development
BLP 4216 MOBİL UYGULAMA GELİŞTİRME-2
CS 240 – Advanced Programming Concepts
Android Sensor Programming
Android Sensor Programming
Presentation transcript:

전광판 만들기 UNIT 04 로봇 SW 콘텐츠 교육원 조용수

학습 목표 Layout XML 이란 ? 기본 XML 속성 Text View 2

Layout XML 이란 ? UI 구성요소를 정의 View or ViewGroup 으로 구성 다양한 Device 상황에 맞춰서 xml 작성 가능 3

액티비티와 뷰 클래스 계층 구조 4 뷰 뷰 뷰 Object View ViewGroup … TextView … LinearLayout

Layout XML 구조 5 <LinearLayout xmlns:android=" xmlns:tools=" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" />

background –#RGB –#ARGB –#RRGGBB –#AARRGGBB 배경색을 바꾼다 6 <LinearLayout xmlns:android=" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#ffff0000" />

실습 1: Layout XML Layout XML 확인 TextView 의 Text 변경 및 확인 7

LinearLayout 기본 XML 속성 Orientation –Vertical : 포함된 View 를 가로로 배열 –Horizontal : 포함된 View 를 세로로 배열 layout_width and layout_height –match_parent : 화면 전체 설정 –Wrap_content : 포함된 View 의 사이즈 로 설정 Gravity – 내부 View 의 정렬을 설정 –android:gravity="center" 8

layout_width, layout_height –match_parent –wrap_content – 상수 몸집 크기를 바꾼다 9 <LinearLayout xmlns:android=" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#ffff0000" />

layout_width, layout_height –match_parent –wrap_content – 상수 몸집 크기를 바꾼다 10 <LinearLayout xmlns:android=" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:layout_width="match_parent" android:layout_height="match_parent" android:background="#ffff0000" />

layout_width, layout_height –match_parent –wrap_content – 상수 몸집 크기를 바꾼다 11 <LinearLayout xmlns:android=" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:layout_width="wrap_content" android:layout_height="match_parent" android:background="#ffff0000" />

padding –paddingLeft –paddingRight –paddingTop –paddingBottom –padding 내 몸에 빈 공간을 만든다 12 자기자신 자식

padding –paddingLeft –paddingRight –paddingTop –paddingBottom –padding 내 몸에 빈 공간을 만든다 13 <LinearLayout xmlns:android=" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#ffff0000" android:paddingLeft="30dp" />

padding –paddingLeft –paddingRight –paddingTop –paddingBottom –padding 내 몸에 빈 공간을 만든다 14 <LinearLayout xmlns:android=" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#ffff0000" android:padding="30dp" />

gravity –left, right, top, bottom, center –center_horizontal, center_vertical 자식을 어디에 둘까 ? 15 자기자신 자식

gravity –left, right, top, bottom, center –center_horizontal, center_vertical 자식을 어디에 둘까 ? 16 <LinearLayout xmlns:android=" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:layout_width="match_parent" android:layout_height="match_parent" android:background="#ffff0000" android:gravity="right|bottom" />

실습 2: 기본 속성 설정 Linearlayout 의 기본 설정을 변경 17

TextView 18 Object View

Text View Text Attribute –TextSize : Text 의 사이즈 변경 –TextColor : Color 설정 ARGB 형식으로 설정 : android:textColor ="#9933ff22“ 미리 설정된 값 지정 : android:textColor= " –TextStyle Bold Italic normal 19

Text View Attribute 변경 20 <LinearLayout xmlns:android=" xmlns:tools=" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Robot Class" android:textSize = "55dp" android:textStyle="bold" />

글자 내용을 지정한다 text 21 <LinearLayout xmlns:android=" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#ffff0000" />

글자 크기를 바꾼다 textSize 22 <LinearLayout xmlns:android=" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize=“80sp" android:background="#ffff0000" />

글자 색깔을 바꾼다 textColor –#RGB –#ARGB –#RRGGBB –#AARRGGBB 23 <LinearLayout xmlns:android=" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize=“80sp" android:textColor="#ff0000ff" android:background="#ffff0000" />

textStyle –normal –bold –italic 글자 모양을 바꾼다 24 <LinearLayout xmlns:android=" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize=“80sp" android:textColor="#ff0000ff" android:textStyle="italic|bold" android:background="#ffff0000" />

한 줄만 쓴다 singleLine –true –false 25 <LinearLayout xmlns:android=" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="80sp" android:textColor="#ff0000ff" android:textStyle="italic|bold" android:singleLine="true" android:background="#ffff0000" />

실습 3: 기본 설정 변경 TextView 의 기본 설정을 변경 26

실습 4: 전광판 만들기 27

Text View Attribute 변경 28 <LinearLayout xmlns:android=" xmlns:tools=" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <TextView android:layout_width="match_parent" android:layout_height="match_parent" android:text="Robot Class" android:textSize = "55dp" android:textStyle="bold" android:gravity="center" />