By: Jeremy Smith.  Introduction  Droid Draw  Add XML file  Layouts  LinearLayout  RelativeLayout  Objects  Notifications  Toast  Status Bar.

Slides:



Advertisements
Similar presentations
Introduction to Computers Section 6A. home The Operating System (OS) The operating system (OS) is software that controls the interaction between hardware.
Advertisements

Android UserInterfaces Nasrullah Niazi. overView All user interface elements in an Android app are built using View and ViewGroup objects. A View is an.
CE881: Mobile and Social Application Programming Simon M. Lucas Menus and Dialogs.
MS-Word XP Lesson 1.
 Options Menu ◦ The primary collection of menu items for an activity, which appears when the user touches the MENU button. When your application is running.
Unlocking Android Chapter 4.  Understanding activities and views  Exploring the Activity lifecycle  Working with resources  Defining the AndroidManifest.xml.
 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.
Filip Debelić What is it? Android is a mobile operating system (OS) based on the Linux kernel and currently developed by Google Android,
User Interface Android Applications. Activities An activity presents a visual user interface. Each activity is given a default window to draw in. The.
Customizing Outlook. Forms Window in which you enter and view information in Outlook Outlook Form Designer The environment in which you create and customize.
Android Programming Beomjoo Seo Sep., 12 CS5248 Fall 2012.
Introduction to Visual Basic. What is Visual Basic? An environment for developing Windows applications Components –A GUI (Graphical User Interface - gooey)
@2011 Mihail L. Sichitiu1 Android Introduction Application Fundamentals.
Exploring the Basics of Windows XP
Android: Layouts David Meredith
Getting Started with Dreamweaver
Introducing the Sudoku Example
CS5103 Software Engineering Lecture 08 Android Development II.
Favorite Twitter® Searches App Android How to Program © by Pearson Education, Inc. All Rights Reserved.
Chapter 2: Simplify! The Android User Interface
Department of Mechanical Engineering, LSUSession VII MATLAB Tutorials Session VIII Graphical User Interface using MATLAB Rajeev Madazhy
DUE Hello World on the Android Platform.
Frank Xu Gannon University.  Linear Layout  Relative Layout  Table Layout.
Chapter 2 The Android User Interface. Objectives  In this chapter, you learn to:  Develop a user interface using the TextView, ImageView, and Button.
INTRODUCTION TO ANDROID. Slide 2 Application Components An Android application is made of up one or more of the following components Activities We will.
Copyright © 2001 by Wiley. All rights reserved. Chapter 2: Using Visual Basic to Create a First Project Getting Started with VB Development Environment.
Copyright © 2010 Wolters Kluwer Health | Lippincott Williams & Wilkins Introduction to Windows Chapter 2.
SpotOn Game App Android How to Program © by Pearson Education, Inc. All Rights Reserved.
Programming Mobile Applications with Android September, Albacete, Spain Jesus Martínez-Gómez.
User Interfaces: Part 1 (View Groups and Layouts).
Android Boot Camp for Developers Using Java, Comprehensive: A Guide to Creating Your First Android Apps Chapter 2: Simplify! The Android User Interface.
User notification Android Club Agenda Toast Custom Toast Notification Dialog.
Themes and Menus: The Sudoku Example Content taken from book: “Hello, Android” by Ed Burnette Third Edition.
Graphical User Interfaces (Part 2) 1. View  view  presents the user with a sensory (visual, audio, haptic) representation of the model state  a user.
First Venture into the Android World Chapter 1 Part 2.
By Felixberto Dominic B. Eruela.  Using a computer to create, edit, and print documents. Of all computer applications, word processing is the most common.
COMPUTER SOFTWARE FORM 1. Learning Area Introduction to computer software Operating System (OS) Application Software Word Processing Software Presentation.
MOBILE COMPUTING D10K-7D02 MC05: Android UI Design Dr. Setiawan Hadi, M.Sc.CS. Program Studi S-1 Teknik Informatika FMIPA Universitas Padjadjaran.
Pearson Webcast Series
© 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Android Boot Camp.
CS378 - Mobile Computing More UI - Part 2. Special Menus Two special application menus – options menu – context menu Options menu replaced by action bar.
CMPF124 Personal Productivity With Information Technology Chapter 1 – Part 2 Introduction to Windows Operating Systems Manipulating Windows GUI CMPF 124.
1 Android Development Lean and mean introduction Based on a presentation by Mihail L. Sichitiu.
CS378 - Mobile Computing User Interface Basics. User Interface Elements View – Control – ViewGroup Layout Widget (Compound Control) Many pre built Views.
Frank Xu Gannon University. A dialog is always created and displayed as a part of an Activity. You should normally create dialogs from within.
Building User Interfaces Basic Applications
COMP 365 Android Development.  Developing for Android  XML for user interface formatting and other scripting  Java for programming.
View  view  presents the user with a sensory (visual, audio, haptic) representation of the model state  a user interface element (the user interface.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
More App Customizations. Overview  Application/ Activity Customizations: Themes  Menu Customizations  Custom Dialogs  Custom Toasts  Custom Buttons.
CHAPTER 4 Fragments ActionBar Menus. Explore how to build applications that use an ActionBar and Fragments Understand the Fragment lifecycle Learn to.
ANDROID LAYOUTS AND WIDGETS. Slide 2 Introduction Parts of the Android screen Sizing widgets and fonts Layouts and their characteristics Buttons, checkboxes.
Android Fundamentals. What is Android Software stack for mobile devices Software stack for mobile devices SDK provides tools and APIs to develop apps.
Android Fragments. Slide 2 Lecture Overview Getting resources and configuration information Conceptualizing the Back Stack Introduction to fragments.
The Flag Quiz app tests your ability to correctly identify 10 flags from various countries and territories.
ANDROID DIALOGS. Slide 2 Dialogs (Introduction) The Dialog class is the base class for all dialogs A dialog is a small window that prompts the user to.
Menus. Menus are a common user interface component in many types of applications. The options menu is the primary collection of menu items for an activity.
Lab7 – Appendix.
Android Programming - Features
Lecture 3 Zablon Ochomo Android Layouts Lecture 3 Zablon Ochomo
Introduction to Event-Driven Programming
Mobile Application Development BSCS-7 Lecture # 8
Mobile Application Development Chapter 4 [Android Navigation and Interface Design] IT448-Fall 2017 IT448- Fall2017.
Politeknik Elektronika Negeri Surabaya
Application Fundamentals
Building User Interfaces Basic Applications
Application Fundamentals
Mobile Programmming Dr. Mohsin Ali Memon.
Presentation transcript:

By: Jeremy Smith

 Introduction  Droid Draw  Add XML file  Layouts  LinearLayout  RelativeLayout  Objects  Notifications  Toast  Status Bar  Dialog  Menus  Events  Listeners  Handlers  Focus  Source

 In Android, the UI is built using View and ViewGroup objects.  Views are a base for subclasses called “Widgets,” which offer fully implemented UI objects. (Ex. Text fields and buttons)  ViewGroups are a base for “layouts,” which offer different kinds of layout architectures.  Android GUI’s are coded in a version of XML and are based on the Views and ViewGroups.

 Add an Android specific XML file to a project. 1. In your android project open up the res folder. 2. Then open the layout folder and you will see a generic file called main.xml 3. To add a XML file simply right click and add a new file. Under Android select the Android XML file and you have a brand new XML file open to edit in your project.

 Writing XML ( Android has its own XML vocabulary )  Used for designing UI layouts and screen elements  Each layout must have only one root element. (parent)  After you create an initial layout you can add additional layouts and widgets to the layout. (child objects)  Position, Size, Padding and Margins Ex. getLeft(), getHight(), getPadding()

RelativeLayout LinearLayout

 The visual UI elements to be used on your Application screen.  Includes Buttons, Images, dialog and many other objects.  Interfaces & Classes Interfaces & Classes

 In the java source code  In the XML layout

 For a situation where you may need to notify a user about an event from your application  3 Types  Toast Notification ▪ Brief message that comes form the background  Status Bar Notification ▪ Background reminders that request the user’s response  Dialog Notification ▪ Activity-related notifications, sometimes require an user interaction. Toast NotificationStatus Bar Notification Dialog Notification

 Initiating a Toast object  Initiate toast from the source code  Or by chaining methods

 How to create a status bar notification: 1. Reference the NotificationManager: 2. Instantiate the Notification: 3. Define the Notification's expanded message and Intent: 4.Pass the Notification to the NotificationManager:

 Types of Dialogs  AlertDialog ▪ Can have buttons, selectable items, and text dialog.  ProgressDialog ▪ Displays a wheel or progress bar, also supports buttons.  DatePickerDialog ▪ Allows user to select a date.  TimePickerDialog ▪ Allows user to select a time.  CustomDialogs ▪ Create your own dialog to suit your needs.  Examples Examples

 Allows users to access application functions and settings.  3 Types of menus  Options Menu ▪ Appear when user presses the hard MENU button ▪ Two Types ▪ Icon Menu ▪ Expanded Menu  Context Menu ▪ Floating list of menu items, appears after a long-press on an item.  Submenu ▪ Floating list of menu items that the user opens by pressing a menu item in the Options Menu or context menu.  Example Menus Example Menus

 index.html