Sie sind auf Seite 1von 50

Android Beginner

sonny.susanto@gmail.com

1
Name

Work / College

Background
Hi There

Experience

Udacity / Android Studio ?

2
Android Development
Udacity.com
for Beginner
How to create <anything> in Android
Android Basics: Multi-Screen Apps

Beginner



Android Basics: Networking
Android Basics: Data Storage
Intro to Java Programming
UX Design for Mobile Developers
Java Programming Basics

3
No programming experience
Computer (+ Android Studio)
Internet Connection
Ever using computer and smartphone
Requirements Need
4weeks
6hours/week
(20 25 hours)

4
Objective

Lesson 1 - Building Layout & Practice Test


Know & Experiment with view
Using XML Visualizer
Building 2(3) Apps
Lesson 2 - Interactive Apps
Lesson 3 - Framework & Control Flow

5
6
New Project - Birthday Card

Application Name : Birthday Card


Company Domain : android.example.com
Package Name : com.example.android.birthday
Use Empty Activity Template
Minimum SDK Level : API 15 Android 4.0.3 Ice Cream Sandwich

7
New Project - Just Java

Application Name : Just Java


Company Domain : android.example.com
Package Name : com.example.android.justjava
Package Location : default
Minimum SDK Level : API 19 Android 4.4 (Kitkat)
Activity : Empty Activity

8
New Project - Basket Score

Application Name : Basket Score


Company Domain : android.example.com
Package Name : com.example.android.basketscore
Use Empty Activity Template
Minimum SDK Level : API 15 Android 4.0.3 Ice Cream Sandwich

9
10
11
12
Talking to the phone

1. Place to write a code


a. IDE (Integrated Development Environment)
Source code editor
Build Automation Tools
Debugger
Contoh : Android Studio, Eclipse XML Visualizer
2. Language
a. XML eXtensible Markup Language

13
Android Studio - Requirement

1. Software
a. OS : Windows, Mac, Linux
b. JDK / JRE
2. Hardware
a. 2GB RAM minimum; 4GB RAM recommended
b. 400 GB HDD

14
Prepare Your Android Studio

15
16
TextView

ImageView

Button
Views

CheckBox

EditText

17
18
19
20
TextView - https://goo.gl/WVbT1h
Match Parent - https://goo.gl/fcismK 21
https://goo.gl/v2EpkR
22
23
24
LinearLayout

RelativeLayout

ViewGroups

25
26
https://goo.gl/LMuyRZ
27
28
https://goo.gl/JlblpY
29
30
31
32
33
Relative Layout Parent https://goo.gl/QGn4dm

34
35
36
Relative Layout Child https://goo.gl/y8wzKR

37
38
39
40
Padding & Margin https://goo.gl/oDivTP
41
42
43
XML Visualizer #2

1. Linear Layout Weight https://goo.gl/hx1qWo


2. Relative Layout - List item https://goo.gl/yV0hMf

44
Quiz

1. Relative Layout Parent


https://gist.github.com/anonymous/e7eb5ceff9dedfc376eb

45
Demo / Experiment

46
47
Many Thanks !!

48
Reference

1. Slideshare - Android Fundamental


http://www.slideshare.net/MohammadTarek/android-fundamentals-65112847
2. Vocab Words https://developers.google.com/android/for-all/vocab-words/?hl=en
3. https://developer.android.com/index.html
4. Material Design -> Typography
https://material.google.com/style/typography.html#typography-typeface
5. Material Design -> Color https://material.google.com/style/color.html#

49
Experiment

1. Change layout_width, layout_height, layout_weight


2. Change color, size
3. Change scaleType
4. Change different image

50

Das könnte Ihnen auch gefallen