Chapter 2 Building User Interfaces and Basic Applications.

Slides:



Advertisements
Similar presentations
Rajab Davudov. What is a Layout ? A type of resource that defines what is drawn on the screen. A type of View class whose primary purpose is to organize.
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 Layouts.
Android User Interface
 User Interface - Raeha Sandalwala.  Introduction to UI  Layouts  UI Controls  Menus and ‘Toasts’  Notifications  Other interesting UIs ◦ ListView.
Filip Debelić What is it? Android is a mobile operating system (OS) based on the Linux kernel and currently developed by Google Android,
More on User Interface Android Applications. Layouts Linear Layout Relative Layout Table Layout Grid View Tab Layout List View.
By: Jeremy Smith.  Introduction  Droid Draw  Add XML file  Layouts  LinearLayout  RelativeLayout  Objects  Notifications  Toast  Status Bar.
Layout and Control in UI The user interface (UI) is the graphical interface user can see and interact with your app comprising UI controls like textbox,
CS378 - Mobile Computing User Interface Basics MIKE!! LOOK HERE FOR intercepting the ListView items:
Creating Android user interfaces using layouts 1Android user interfaces using layouts.
Mobile Programming Lecture 1 Getting Started. Today's Agenda About the Eclipse IDE Hello, World! Project Android Project Structure Intro to Activities,
Introduction to Android Programming Content Basic environmental structure Building a simple app Debugging.
Android Boot Camp for Developers Using Java, Comprehensive: A Guide to Creating Your First Android Apps Chapter 9: Customize! Navigating with a Master/Detail.
Android Development: Application Layout Richard S. Stansbury 2015.
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Modify Android Objects Using.
Android: versions Note that: Honeycomb (Android v3.0) A tablet-only release Jelly Bean (Android v4.1) Released on July 09, 2012.
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
Tip Calculator App Building an Android App with Java © by Pearson Education, Inc. All Rights Reserved.
Android Layouts. Layouts Define the user interface for an activity Layouts are defined in.xml files – within /res/layout folder – different layout can.
Understanding Hello Android 1 CS300. Activity  Similar to a form  Base class for the visual, interactive components of your application  Android API.
Frank Xu Gannon University.  Linear Layout  Relative Layout  Table Layout.
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Using Android XML Resources.
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.
Android Boot Camp for Developers Using Java, 3E
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
Configuring Android Development Environment Nilesh Singh.
Presented By: Muhammad Tariq Software Engineer Android Training course.
Android Boot Camp for Developers Using Java, Comprehensive: A Guide to Creating Your First Android Apps Chapter 2: Simplify! The Android User Interface.
WaveMaker Visual AJAX Studio 4.0 Training Basics: Building Your First Application Designer Basics.
First Venture into the Android World Chapter 1 Part 2.
MOBILE COMPUTING D10K-7D02 MC04: Layouts Dr. Setiawan Hadi, M.Sc.CS. Program Studi S-1 Teknik Informatika FMIPA Universitas Padjadjaran.
HW#9 Clues CSCI 571 Fall, HW#9 Prototype
MOBILE COMPUTING D10K-7D02 MC05: Android UI Design Dr. Setiawan Hadi, M.Sc.CS. Program Studi S-1 Teknik Informatika FMIPA Universitas Padjadjaran.
© 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.
© 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.
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.
Building User Interfaces Basic Applications
CS378 - Mobile Computing More UI. UI Review Containers – more formally ViewGroups – store widgets and other containers – examples: LinearLayout, RelativeLayout,
© 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.
Building User Interfaces and Basic Applications Chapter 2 1.
CHAPTER 4 Fragments ActionBar Menus. Explore how to build applications that use an ActionBar and Fragments Understand the Fragment lifecycle Learn to.
CS371m - Mobile Computing User Interface Basics. UI Programming with Widgets Widget is an element in a Graphical User Interface (GUI) – not to be confused.
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.
Open Handset Alliance.
Activities and Intents
Creation of an Android App By Keith Lynn
Mobile Application Development Chapter 4 [Android Navigation and Interface Design] IT448-Fall 2017 IT448- Fall2017.
CS371m - Mobile Computing User Interface Basics.
CIS 470 Mobile App Development
Android Programming Lecture 3
CS371m - Mobile Computing User Interface Basics.
CS323 Android Getting Started
CS5103 Software Engineering
Lecture 2 b: Android Layout Basics Topics
Mobile Computing With Android ACST 4550 Android Layouts
Building User Interfaces Basic Applications
Android Developer Fundamentals V2
CIS 470 Mobile App Development
Mobile Programmming Dr. Mohsin Ali Memon.
CS 240 – Advanced Programming Concepts
Android Sensor Programming
Presentation transcript:

Chapter 2 Building User Interfaces and Basic Applications

Figure 02.01: Standard Layout Types

Figure 02.02: RelativeLayout elements are positioned relative to each other

Figure 02.03: A GridLayout has two orientations

Figure 02.04: FrameLayouts contain a single control object, such as a canvas or list

Figure 02.05: Soft keyboards can be altered during stages of input

Figure 02.06: A soft keyboard configured for the input of an address

Figure 02.07: A soft keyboard configured for password input

Figure 02.08: Android supports multiple soft keyboard configurations

Figure 02.09: Text AutoComplete will produce dictionary-based suggestions during input

Figure 02.10: The Search icon appears when you declare android:imeOptions=”actionSearch.”

Figure 02.11: The Shipping Cost Calculator is partially conceptualized in a sketched prototype

Figure 02.12: The final project structure for the Shipping Calculator app

Figure 02.13: View objects arranged in the Layout Editor’s Design mode

Figure 02.14: Widgets are subclasses of the View base class

Figure 02.15:

Figure 02.16: Switch and TobbleButton widgets

Figure 02.17: CheckBox, Seekbar, Switch, and Button widgets arranged in a LinearLayout

Figure 02.18: A Spinner widget displays values from a set

Figure 02.19: View objects can be organized in ViewGroup containers.

Figure 02.20: A RadioGroup is a ViewGroup that contains RadioButton widgets

Figure 02.21: The Burger Calorie Calculator App and its View Structure

Figure 02.22: The final project structure for the Burger Calorie Counter app

Figure 02.23: activity_my.xml layout design

Figure 02.24: Sample contents of R.java showing generated-resource identifiers

Figure 02.25: Adaptive Design is used to display different content for different screens

Figure 02.26: Many versions of activity_my.xml can be used by an application

Figure 02.27: The Shipping Cost app reconceptualized in portrait and landscape orientations

Figure 02.28: Additional layout directories can be used to store different configurations of a user interface

Figure 02.29: Computed output values are organized in a separate ViewGroup container in res/ layout/activity_my.xml

Figure 02.30: A LinearLayout is added to res/layout-land/activity_my.xml to group elements related to weight input

Figure 02.31: A TableLayout built in Java

Figure 02.32: The Calculator running in an AVD designed for a small device

Figure 02.33: The project structure for the Calculator application

Figure 02.34: The Layout design, activity_my.xml, for the Calculator application

Figure 02.35: The display component of the calculator spans across four cells

Figure 02.36: The second row of the Calculator contains the AC, %, and / buttons

Figure 02.37: The buttons in the 3rd, 4th, and 5th rows are of equal size

Figure 02.38: The final TableRow of the TableLayout contains two Buttons

Figure 02.39: A SimpleExpression object is defined by two operands and an operator

Figure 02.40: ViewGroup Containers

Figure 02.41: The Renaissance Paintings App contains clickable paintings that scroll horizontally

Figure 02.42: Project Structure for the Renaissance application

Figure 02.43: The layout structure for activity_my.xml