Anatomy of an App User Interface Design

Slides:



Advertisements
Similar presentations
CM143 - Web Week 2 Basic HTML. Links and Image Tags.
Advertisements

Philly.NET Hands-On jQuery + Plug-ins Bill Wolff, Rob Keiser.
Anatomy of an App HTML, CSS, jQuery, jQuery Mobile CIS 136 Building Mobile Apps 1.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
‘Mobile first’ Alexander Roberts ISS Web Team Manager Swansea University.
HTML BASICS Creating Web Pages with HTML CIS 133 Web Programming Concepts 1.
HTML Hyper-Text Markup Language or tags. HTML is a “tag” language Open and close tags Tags identified with angle brackets Basic format content (shorthand.
HTML: Hyptertext Markup Language Doman’s Sections.
JQuery Mobile User Interface Design Chapter 1 1. Architecture 2  Hybrid Apps leverage open web standards  Can Test/debug user interface using desktop.
Tutorial #1 Using HTML to Create Web Pages. HTML, XHTML, and CSS HTML – HyperText Markup Language The tags the browser uses to define the content of the.
Fundamentals of Web DevelopmentRandy Connolly and Ricardo Hoar Textbook to be published by Pearson Ed in early Bootstrap.
丁建文 國立高雄應用科大資管系副教授 兼任計網中心軟體發展組組長 跨平台行動應用軟體開發技術 : HTML5 & Mobile JavaScript Framework 暨南大學.
Web Design Principles 5 th Edition Chapter 3 Writing HTML for the Modern Web.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
Week 1: Introduction to HTML and Web Design
HTML Structure & syntax
What you can see in the picture?
Getting Started with HTML
Front-end framework 1.
Web Development & Design Foundations with HTML5
INTRO TO WEB DEVELOPMENT html
Web Basics: HTML/CSS/JavaScript What are they?
HTML – The COMPUTING UNLOCKED GUIDE
CNIT131 Internet Basics & Beginning HTML
HTML basics
Internet Exploration: HTML Basics
Concepts for fluid layout
Introduction to CSS Media Query - Lesson 11
HTML5 – Heading, Paragraph
Concepts of HTML, CSS and Javascript
Coding, Testing and Valdating a Web Page
INTRODUCTION TO HTML AND CSS
Tutorial 6 Topic: jQuery and jQuery Mobile Li Xu
JQuery.
Web Development & Design Foundations with HTML5
Chapter 1: Introduction to XHTML (part 1)
AN INTRODUCTORY LESSON TO MAKING A SIMPLE WEB PAGE By: RC Emily Solis
Intro to Web Development Class A Review
Internet Exploration: HTML Basics
HTML Robert McIntosh
IS1500: Introduction to Web Development
The Cliff Notes Version
HTML – Organizing Page Content
Responsive Design.
Prepared for Md. Zakir Hossain Lecturer, CSE, DUET Prepared by Miton Chandra Datta
Basic HTML and Embed Codes
HTML – Organizing Page Content
What are Cascading Stylesheets (CSS)?
Introduction to HTML- Basics
Intro to Web Development HTML Structure
INTRODUCTION TO HTML AND CSS
Secure Web Programming
Structuring Content in a Web Document
Introduction to HTML5.
SEEM4570 Tutorial 5: jQuery + jQuery Mobile
Creating Web Pages with HTML 5
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
Computer communications
Basic HTML Workshop.
Web Page Layout Imran Rashid CTO at ManiWeber Technologies.
HTML – The COMPUTING UNLOCKED GUIDE
CIS 133 mashup Javascript, jQuery and XML
HTML & CSS 7 Languages in 7 Days.
HyperText Markup Language
Web Development & Design Foundations with HTML5
Concepts for fluid layout
Lesson 2: HTML5 Coding.
Week 5: Recap and Portfolio Site
Web Programming and Design
Various mobile devices
Presentation transcript:

Anatomy of an App User Interface Design Chapter 1

Hybrid App Architecture Hybrid Apps leverage open web standards Can Test/debug user interface using desktop browser Move on to building out native components and testing on an emulator/device

Hybrid App Architecture (cont.) User interface Also known as webview Written in html,css, javascript Can use third party frameworks Device interface Also known as the native view Provides connectivity to the mobile devices features Cordova/Phonegap is an intermediary Wrapper around the app that talks to the mobile device A web-to-native abstraction layer enables access to device capabilities, such as the accelerometer, camera and local storage, that are not accessible in websites that display in a browser on a mobile device

HTML web view structure

HyperText Markup Language (HTML) Describes structure and content of a document A bunch of “Tags” (aka elements and attributes ) containing instructions for appearance Syntax < tag> content </end tag> Types of tags Containers - have opening and closing and contain content Standalone tags – opening closes itself <tag …. /> Whitespace Any whitespace you type in an html file will be ignored by the browser

The Structure of an HTML File DOCTYPE tag <!DOCTYPE html> HTML tag <html></html> Root element Can have only one root element Head element <head></head> Contains tags and information about the document Instructions in this section are done before the page is displayed and remain in memory Body element <body></body> Contains tags and content to be displayed in the page <!DOCTYPE html> <html> <head> <title></title> </head> <body> content </body> </html>

Tags (Elements and Attributes) Provide browsers with information about how to treat/refine the the content Syntax <element attribute1=“some value" attribute2=“some value“> content </element> <div border=“1” bordercolor=“black”> bugs </div> <img src=“picture.gif” id=“picture1” /> Self-closing tags do not need a closing tag, because they contain no content

<head></head> tag <!DOCTYPE html> <html> <head> <title></title> </head> <body> content </body> </html> Container for other tags <title> </title> <meta /> <link /> <script> </script> <style></style> Script and Style tags are also allowed in the <BODY> />

Viewport meta tag Specifies how the browser should control the page zoom level and dimensions user-scalable, maximum, and minimum scale: control how users are allowed to zoom the page in or out width=device-width: sets the width of the page to follow the screen-width of the device (controls viewport size) Varies depending on the device initial-scale=1 sets the initial zoom level when the page is first loaded by the browser Note: a 3-4 inch screen has 320-480 pixels Many apps set their viewport to content="width=320, initial-scale=1" to fit precisely onto the iPhone http://viewportsizes.com/

<script></script> Cordova.js is not present in the project folder but is needed at compile time Can store all code in separate .js file Note: type attribute is optional The Javascript/jQuery functions you write for your app can also be stored in a separate file

<body></body> tag Container for other tags and content (text, multi-media) dealing with appearance and behavior Paragraph: <p>content</p> Line Breaks: <br /> <hr /> Lists: <ol> items </ol>, <ul> </ul> List items: <li>content </li> Headings: <h1></h1> .. <h2> </h2>.. Etc.

Structuring a page Generic elements Semantic elements <div></div> - divides page content into sections that can be formatted and positioned using styles </span></span> - identifies text that can be formatted using styles Semantic elements <header></header> - top of page <section></section> - generic section of page <article></article> - composition, like a newspaper article <nav></nav> - links to other pages <aside></aside> - sidebar <footer></footer> - bottom of page

HTML, CSS, jQuery, jQuery Mobile, Javascript The USER INTERFACE HTML, CSS, jQuery, jQuery Mobile, Javascript

jQuery & jQuery Mobile webview structure

jQuery a lightweight, "write less, do more", JavaScript library, focusing on desktop applications takes a lot of common tasks that require many lines of Javascript code and wraps them into methods that you can call with a single line of jQuery code Two versions of jQuery available: Production version – for your live website because it has been minified and compressed Development version for testing and development (uncompressed and readable code) Both versions can be downloaded from jQuery.com

jQuery Download vs CDN (faster) Download it from jQuery.com Reference it with the HTML <script> tag (notice that the <script> tag should be inside the <head> section): <head> < script src="jquery-1.11.2.min.js"></script> </script> < /head> Use a CDN (choose one Content Delivery Network) GOOGLE CDN <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> < /head> Microsoft CDN <head> < script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.2.min.js"></script> < /head> jQuery CDN <head> <script src="http://code.jquery.com/jquery-1.11.2.min.js"></script> < /head>

jQuery Mobile jQuery mobile is a framework for creating mobile web applications Built upon jQuery, so the jQuery library must be defined first in the app Designed with functions for all popular smartphones and tablets View-oriented model Designed for one physical page(file) with multiple “page views” Has a stylesheet (.css file) and a javascript library (.js file)

jQuery Mobile Download it from jQuery.com Reference it with the HTML <script> tag (the <script> tag should be inside the <head> section) <head> < script src="jquery.mobile.min.js"></script> < script src="jquery.mobile.min.css"></script> < /head> Reference jQuery mobile from a CDN, like Google GOOGLE CDN <head> <script src="http://ajax.googleapis.com/ajax/libs/jquerymobile/1.4.5/jquery.mobile.min.css"></script> <script src="http://ajax.googleapis.com/ajax/libs/jquerymobile/1.4.5/jquery.mobile.min.js"></script> < /head> Microsoft CDN <head> < script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery.mobile-1.4.5.min.js"></script> < script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery.mobile-1.4.5.min.css"></script> < /head> jQuery <head> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" /> <script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>

The finished <head> using a jQuery CDN <!-- Include meta tag to ensure proper rendering and touch zooming --> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no”> <!-- Include jQuery Mobile stylesheets --> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css"> <!-- Include the jQuery library --> <script src="http://code.jquery.com/jquery-1.11.2.min.js"></script> <!-- Include the jQuery Mobile library --> <script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script> <title> </title> </head>