SlideShare a Scribd company logo
Android Application Development




User Interface: Layout Basics
User Interface: Layouts
● In the Android developer community the term layout is
  used to mean one of the following two things:
   ○ A type of resource that defines what is drawn on the
      screen. Layout resources are stored as XML files in the
      /res/layout resource directory for the application. A
      layout resource is simply a template for a user
      interface screen or portion of a screen.
   ○ A type of view class whose primary purpose is to
      organize other controls. These layout classes
      (LinearLayout, RelativeLayout, TableLayout etc.)
      are used to display child controls, such as text
      controls or buttons or images on the screen.
● Android user interfaces can be defined as layout
  resources in XML or created programmatically.
User Interface: Layout in Eclipse
Defining an XML Layout Resource
● The most convenient and maintainable way to design UI
● Simplifies the UI design process
● This way, we can separate view and logic easily
Defining a Layout Programmatically

More Related Content

PDF
AndroidManifest
PPT
Multiple Activity and Navigation Primer
PPT
Day: 2 Environment Setup for Android Application Development
PPT
Day 3: Getting Active Through Activities
PDF
Training android
PPT
Android studio 2.0: default project structure
PPT
Android Applications Development
PPT
Google Android
AndroidManifest
Multiple Activity and Navigation Primer
Day: 2 Environment Setup for Android Application Development
Day 3: Getting Active Through Activities
Training android
Android studio 2.0: default project structure
Android Applications Development
Google Android

What's hot (20)

PPTX
Android application-component
PPTX
Android User Interface
PPTX
PPT
android-tutorial-for-beginner
PDF
Android Development: Build Android App from Scratch
PPT
Day 4: Android: UI Widgets
PPT
Android tutorial
PPT
Android tutorial
PPT
Android tutorial
PPTX
Android development session 5 - Debug android studio
PPT
Android tutorial
PDF
Android tutorial
PPT
Android
PDF
Day1 before getting_started
PPTX
Android
PPTX
Creating the first app with android studio
PDF
Android session 1
PDF
Android session 2
PDF
Android session 3
PPTX
Android app development
Android application-component
Android User Interface
android-tutorial-for-beginner
Android Development: Build Android App from Scratch
Day 4: Android: UI Widgets
Android tutorial
Android tutorial
Android tutorial
Android development session 5 - Debug android studio
Android tutorial
Android tutorial
Android
Day1 before getting_started
Android
Creating the first app with android studio
Android session 1
Android session 2
Android session 3
Android app development
Ad

Viewers also liked (15)

PDF
Lecture 3 getting active through activities
PDF
Day 2 android internals a quick overview
PPT
Day 6: Android BroadcastReceiver Component
PPTX
Android Workshop: Day 1 Part 3
PPTX
Day: 1 Introduction to Mobile Application Development (in Android)
PPTX
Android GPS Tutorial
PPTX
Day 15: Working in Background
PPTX
Introduction to Android Development: Before Getting Started
PPTX
Android before getting started
PDF
Lecture 1 Session 1 Before Getting Started
PPT
Day 3: Getting Active Through Activities
PDF
Lecture 2(b) Android Internals A Quick Overview
PDF
Lecture 5: Storage: Saving Data Database, Files & Preferences
PPTX
Day 15: Content Provider: Using Contacts API
PDF
Day 1 Android: Before Getting Started
Lecture 3 getting active through activities
Day 2 android internals a quick overview
Day 6: Android BroadcastReceiver Component
Android Workshop: Day 1 Part 3
Day: 1 Introduction to Mobile Application Development (in Android)
Android GPS Tutorial
Day 15: Working in Background
Introduction to Android Development: Before Getting Started
Android before getting started
Lecture 1 Session 1 Before Getting Started
Day 3: Getting Active Through Activities
Lecture 2(b) Android Internals A Quick Overview
Lecture 5: Storage: Saving Data Database, Files & Preferences
Day 15: Content Provider: Using Contacts API
Day 1 Android: Before Getting Started
Ad

Similar to Ui layout (incomplete) (20)

PPTX
mobile application development -unit-3-
PPTX
Unit 2 part for information technology1 4.pptx
PDF
Mobile Application Development -Lecture 07 & 08.pdf
PPTX
hema ppt (2).pptx
PDF
mad-unit-3.pdfjsjsjhshehdjsjsjjdjdjsjsikwjsjkks
ODP
Android training day 2
PPTX
WMP_MP02_revd(10092023).pptx
PPTX
Notes Unit3.pptx
PDF
Android developers use the term layout to mean one of two things. Bo.pdf
PPTX
Introduction to Android Development.pptx
PDF
Mobile Application Development Lecture 05 & 06.pdf
PDF
Android ui layout
PPTX
WMP_MP02_revd_03(10092023).pptx
PDF
01 08 - graphical user interface - layouts
PPTX
Building a simple user interface lesson2
ODP
Android introduction
PPTX
PDF
Unit 2: Programming Language Tools
PPTX
Android Development : (Android Studio, PHP, XML, MySQL)
PPTX
MAD_UNIT-3.pptx mobile application development
mobile application development -unit-3-
Unit 2 part for information technology1 4.pptx
Mobile Application Development -Lecture 07 & 08.pdf
hema ppt (2).pptx
mad-unit-3.pdfjsjsjhshehdjsjsjjdjdjsjsikwjsjkks
Android training day 2
WMP_MP02_revd(10092023).pptx
Notes Unit3.pptx
Android developers use the term layout to mean one of two things. Bo.pdf
Introduction to Android Development.pptx
Mobile Application Development Lecture 05 & 06.pdf
Android ui layout
WMP_MP02_revd_03(10092023).pptx
01 08 - graphical user interface - layouts
Building a simple user interface lesson2
Android introduction
Unit 2: Programming Language Tools
Android Development : (Android Studio, PHP, XML, MySQL)
MAD_UNIT-3.pptx mobile application development

More from Ahsanul Karim (15)

PDF
লেকচার ১ (ক)- শুরুর আগে:
PPTX
Day 9: Make Your App Location Aware using Location API
PDF
Day 8: Dealing with Lists and ListViews
PDF
Day 8: Dealing with Lists and ListViews
PPT
Day 5: Android User Interface [View Widgets]
DOC
Day 4: Activity lifecycle
PPT
Day 4: Android: Getting Active through Activities
PDF
Mobile Banking in Bangladesh: An Incomplete Study
PDF
GCM for Android
PDF
List Views
PDF
Sensors in Android (old)
PPTX
Action Bar Sherlock tutorial
PPTX
Android Workshop Day 1 Part 2
PPTX
Android 1.8 sensor
PPTX
Client-Server
লেকচার ১ (ক)- শুরুর আগে:
Day 9: Make Your App Location Aware using Location API
Day 8: Dealing with Lists and ListViews
Day 8: Dealing with Lists and ListViews
Day 5: Android User Interface [View Widgets]
Day 4: Activity lifecycle
Day 4: Android: Getting Active through Activities
Mobile Banking in Bangladesh: An Incomplete Study
GCM for Android
List Views
Sensors in Android (old)
Action Bar Sherlock tutorial
Android Workshop Day 1 Part 2
Android 1.8 sensor
Client-Server

Ui layout (incomplete)

  • 1. Android Application Development User Interface: Layout Basics
  • 2. User Interface: Layouts ● In the Android developer community the term layout is used to mean one of the following two things: ○ A type of resource that defines what is drawn on the screen. Layout resources are stored as XML files in the /res/layout resource directory for the application. A layout resource is simply a template for a user interface screen or portion of a screen. ○ A type of view class whose primary purpose is to organize other controls. These layout classes (LinearLayout, RelativeLayout, TableLayout etc.) are used to display child controls, such as text controls or buttons or images on the screen. ● Android user interfaces can be defined as layout resources in XML or created programmatically.
  • 4. Defining an XML Layout Resource ● The most convenient and maintainable way to design UI ● Simplifies the UI design process ● This way, we can separate view and logic easily
  • 5. Defining a Layout Programmatically