Android Basic Day 1
Android Basic Day 1
"Android Basic"
Studi Kasus Aplikasi "SekolahKu"
Day 1
Course Syllabus
Custom
Menu ListView SQLite
Adapter
Course Overview
Final
Day 1 Day 2 Day 3 Day 4 Interview Certificate
Project
s.id/SekolahKu
Mobile App Developments
Create New Project
App Name: SekolahKu
Min SDK: 15
Target SDK: 25
Introduction to Android Studio
Project
Structure
Android Manifest
XML Java
• Define Layout • Define Action
• Act as View • Act as Controller
Sample XML Code
XML
Java
• Define an action, ex: Do something when the button is
clicked by user
Activity
Activity is a
screen
Activity consist of Java and XML
Java
Activity
XML
Task #1 Create new activity:
TestActivity
View
What is View?
Padding is the space inside the border, between the border and
the actual view's content. Note that padding goes completely
around the content: there is padding on the top, bottom, right
and left sides (which can be independent).
Margins are the spaces outside the border, between the border
and the other elements next to this view. In the image, the
margin is the grey area outside the entire object. Note that, like
the padding, the margin goes completely around the content:
there are margins on the top, bottom, right, and left sides.
Padding & Margin
Padding & Margin