User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.

Slides:



Advertisements
Similar presentations
Chapter 3 – Web Design Tables & Page Layout
Advertisements

JQuery Mobile. Benefits Required links Remember that we need to add the links to the head, in this order.
Chapter 3 Creating a Business Letter with a Letterhead and Table
Twitter Bootstrap. Agenda What is it? Grids and Fluid layouts Globals and Typography Tables, Forms and Buttons Navigation Media and thumbnails Responsive.
Cascading Style Sheets
Cascading Style Sheets. CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. CSS is a.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
Principles of Web Design 5 th Edition Chapter Nine Site Navigation.
SM5312 week 11: CSS Menus & Navigation Bars1 An Introduction to Cascading Style Sheets CSS Menus and Navigation Bars Nick Foxall.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
Advance CSS (Menu and Layout) Miftahul Huda. CSS Navigation MENU It's truly remarkable what can be achieved through CSS, especially with navigation menus.
CIS 1310 – HTML & CSS 6 Layout. CIS 1310 – HTML & CSS Learning Outcomes  Describe & Apply the CSS Box Model  Configure Float with CSS  Designate Positioning.
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
Class four: the box model and positioning. is an HTML tag which allows you to create an element out of inline text. It doesn’t mean anything! try it:
Page Numbers, Headers, and Footers
CREATING A MULTIPLE PAGE REPORT Presented by: Dr. Ennis-Cole.
Chapter 10—Creating Presentations
User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.
Microsoft Office Illustrated Fundamentals Unit E: Enhancing a Document Unit E: Enhancing a Document.
Enhancing a Document. Objectives Change font and font size Change font color, style, and effects Change alignment and line spacing Change margin settings.
COMPREHENSIVE Excel Tutorial 2 Formatting a Workbook.
Purpose Tags are the key to marking up content on your HTML page. It’s the tags that mark up sections of the page and are defined (aesthetically) on the.
HTML Tables and Forms Creating Web Pages with HTML CIS 133 Web Programming Concepts 1.
User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.
 jQuery Mobile An Introduction. What is jQuery Mobile  A framework built on top of jQuery, used for creating mobile web applications  Designed to make.
Tutorial 6 Creating Tables and CSS Layouts. Objectives Session 6.1 – Create a data table to display and organize data – Modify table properties and layout.
Excel Part 2 Formatting a Workbook. XP Objectives Format text, numbers, and dates Change font colors and fill colors Merge a range into a single cell.
ITP 104.  While you can do things like this:  Better to use styles instead:
© Ms. Masihi.  The Dreamweaver Welcome Screen first opens when you start Dreamweaver.  This screen gives you quick access to previously opened files,
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 4 1 Microsoft Office FrontPage 2003 Tutorial 4 – Using Shared Borders and Themes.
IDs versus Classes Naming Your Tags for Maximum Functionality.
Microsoft Word 2000 Presentation 5. Major Word Topics Columns Tables Lists.
 Word doc for you to download › Link at the beginning of class › 10 Questions › Answers to be added inline  Post to Sakai when completed › No resubmits.
XP New Perspectives on Microsoft Word 2002 Tutorial 31 Microsoft Word 2002 Tutorial 3 – Creating a Multiple-Page Report.
WORKBOOK FORMATTING Nolan Tomboulian Tomboulian.wikispaces.com HOW THINGS LOOK CELL COLORFONT COLOR CELL BORDERSFONT SIZE CELL SIZEFONT.
 Remember that HTML is just text  Need to point to pictures  Use the img tag  alt: › screen reader › REQUIRED for this class and to validate.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved. word 2010 Chapter 3 Formatting Documents.
Tutorial #6 – Creating Fixed Width Layouts. Tutorial #5 Review – Box Model Every html element is surround by a box Content, Padding, Border, Margin Can.
1. Chapter 6 Formatting Pages 3 Formatting Changes in Word You can use views other than the default Print Layout view when working with page design.
Copyright 2007, Paradigm Publishing Inc. EXCEL 2007 Chapter 3 BACKNEXTEND 3-1 LINKS TO OBJECTIVES Change Column Widths & Row Heights Change Column Widths.
Principles of Web Design 6 th Edition Chapter 9 – Site Navigation.
Layout with Styles Castro Chapter 11. Tables vs. CSS You can produce “liquid layouts” (layouts that stretch as the browser is resized) using tables or.
Creating Google Sites Laura Assem, Director of Technology.
User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.
Lesson 6 Formatting Cells and Ranges. Objectives:  Insert and delete cells  Manually format cell contents  Copy cell formatting with the Format Painter.
Introducing Dreamweaver. Dreamweaver The web development application used to create web pages Part of the Adobe creative suite.
Introduction to Technology. Parts of MSWord Screen Title Bar Quick Access Toolbar Button Ribbon Status Bar (views and zoom)
Web Site Development - Process of planning and creating a website.
Chapter 3 CSS Components Yeunyong Kantanet School of Information and Communication Technology University of Phayao Yeunyong Kantanet School of Information.
 Add one element at a time  If it doesn’t do what you want, › Delete it › DON’T just keep piling on more items.
Header, Footer, and Navigation toolbars CIS 136 Building Mobile Apps 1.
Themes CIS 136 Building Mobile Apps 1. Themes 2  jQuery Mobile has a robust theme framework that supports up to 26 sets of toolbar, content and button.
CSS Layouts: Positioning and Navbars
Microsoft Office 2007-Illustrated
Working with Tabs and Tables
Advanced CSS BIS1523 – Lecture 20.
CIS 136 Building Mobile Apps
Tutorial 6 Topic: jQuery and jQuery Mobile Li Xu
Lists, Thumbnails, and Icons
Cascading Style Sheets (Layout)
Buttons, Headers, Footers, and Navigation
Cascading Style Sheets
Fixed Positioning.
Popups, Dialogs, Widgets, Panels
SEEM4570 Tutorial 5: jQuery + jQuery Mobile
Buttons, Headers, Footers, and Navigation
Objectives At the end of this session, students will be able to:
Multipage Sites.
Microsoft Office Illustrated Fundamentals
Presentation transcript:

User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1

Components of jQuery Mobile 2  Data attributes  Pages, Dialogs, and Transitions  Toolbars, Buttons, and icons  Content Formatting  Grids  Content blocks  Collapsible sets  Forms  ListViews  Events & Methods  Most are used automatically  do not need to code them yourself

Buttons Cis136 – Building Mobile Apps 3

JQM buttons 4  Mobile applications are built upon the simplicity of tapping things you'd want displayed  Used to navigate from one page/view to another  A button in jQuery Mobile can be created in four ways:  Using the element  Using the element with class="ui-btn"  Using the element with class="ui-btn  Using the element with data-role=“button”

Creating Buttons 5  To link between pages by buttons, use the element  add class ui-btn inside the anchor tag  Go to Page Two  Can also set the date-role attribute  Go to Page Two

In-line buttons 6  buttons take up the full width of the screen  If you want a button that is only as wide as its content:  Go to Page Two  if you want two or more buttons to appear side by side, add the ui-btn-inline class to each one

Grouping buttons 7  Use a element with the date-role of controlgroup and data- type to indicate position:  Horizontal Button 1 Button 2 Button 3  Vertical (default) Button 1 Button 2 Button 3 By default, no margins and space between them. And only the first and the last button has rounded corners, which creates a nice look when grouped together

Back Buttons 8  To create a Back button, use the data-rel="back" attribute  this will ignore the anchor's href value Go Back

Corner design 9  To add rounded corners to a button Button 1

Button Text Size 10  To make the buttons’ text smaller, use the class ui-mini Button 1

Button shadow 11  To make the button have a drop shadow, use the class ui-shadow Button 1

Misc notes 12  If you want to use more than one class  separate each class with a space  Ex.. class="ui-btn ui-btn-inline ui-btn-corner-all ui-shadow“  By default, buttons have shadow and rounded corners  the and element do not

Icons Cis136 – Building Mobile Apps 13

Button Icons 14  JQM provides a set of icons that will make your buttons look more desirable  To add an icon to your button, use the ui-icon class Top  If desired, position the icon with an icon position class  You can specify one of four values for where the icon should be positioned in the button: top, right, bottom or left Top

Button Icons - continued 15  Common ui-icon classes include classDescription ui-icon-arrow-lLeft arrow ui-icon-arrow-rRight arrow ui-icon-infoInformation ui-icon-deleteDelete ui-icon-backBack ui-icon-audioSpeakers ui-icon-lockPadlock ui-icon-searchSearch ui-icon-alertAlert ui-icon-gridGrid ui-icon-homeHome

Button Icons - continued 16  To display only the icon and not the text, use class ui-btn- icon-notext Search

Button Icons - continued 17  By default, all icons have a gray circle (disc) around them  To remove the circle, add the "ui-nodisc-icon" class to the element or its container Without circle

Button Icons - continued 18  Unless a custom theme is being used, all icons are white  To change the icon color to black, add the "ui-alt-icon" to the element or its container White Black  combining "ui-nodisc-icon" and "ui-alt-icon"

Other notes 19  Complete icon reference is located at  You can also use the data-icon attribute, as in Refresh Page

ToolBars Cis136 – Building Mobile Apps 20

21  Toolbar elements are often placed inside headers and footers

Header toolbars 22  The header is located at the top of the page and usually contain a page title/logo or one or two buttons  home, options or search  You can add buttons to the left and/or to the right side in the header.  The code below, will add a "Home" button to the left and a "Search" button to the right of the header title text: Home Welcome To My Homepage Search

Header toolbars (continued) 23  A header can contain one or two buttons, while the footer has no limit  add a button to the left side of the header title Home Welcome To My Homepage

Header toolbars (continued) 24  add a button to the right side of the header title Welcome To My Homepage Search

Footer toolbars 25  The footer is located at the bottom of the page.  The footer is more flexible than the header  it is more functional and changeable throughout pages, and can therefore contain as many buttons as needed Add Me On Facebook Add Me On Twitter Add Me On Instagram

Footer toolbars (cont.) 26  The buttons in the footer are not centered by default  use CSS to fix this Add Me On Facebook Add Me On Twitter Add Me On Instagram

Navigation Bars Cis136 – Building Mobile Apps 27

Navigation bars 28  A navigation bar consists of a group of links that are aligned horizontally, typically within a header or footer

Navigation bars 29  The bar is coded as an unordered list of links wrapped inside a element that has the data-role="navbar" attribute: Home Page Two Search

Navigation bars 30  By default, links inside a navigation bar will automatically turn into a button  no need for class="ui-btn" or data-role="button“ The buttons are, by default, as wide as its content  use an unordered list to divide the buttons equally:  1 button takes 100% of the width  2 buttons share 50% each  3 buttons 33,3%, etc.  Note: If you specify more than 5 buttons in the navbar, it will wrap to multiple lines

Navigation bar icons 31  To add an icon to your navigation button, use the data- icon attribute Search Note: The data-icon attribute use the same values as the CSS classes specified in the "Icons" instead of specifying class="ui-icon-value", specify the attribute of data- icon="value” Home Page Two Search

Navigation bar icons - positioning 32  choose where the icon should be positioned in the navigation button  top, right, bottom or left.  The icon position is set on the navbar container  it is not possible to position each individual button link  Use the data-iconpos attribute to specify the position: Home Page Two Search By default, icons in navigation buttons are placed above the text (data-iconpos="top"). Need to set left, right, and bottom.

Navigation bar icons – active buttons 33  When a link in the navbar is tapped/clicked, it gets the selected (pressed down) look.  To achieve this look without having to tap the link, use the class="ui-btn-active" Home Page Two By default, icons in navigation buttons are placed above the text (data-iconpos="top").

Navigation bar icons – persisting 34  For multiple pages, you might want the "selected" look for each button that represents the page the user is on  add the "ui-state-persist" class to your links, as well as the "ui- btn-active" class Home Page Two By default, icons in navigation buttons are placed above the text (data-iconpos="top").

Third-party 35  Many popular icon libraries  Glyphish follows the iOS style tab that has large icons stacked on top of text labels Glyphish  Easy to implement using custom styles glyphish.com. Licensed under the Creative Commons Attribution 3.0 United States License

Third-party 36 Chat Danger Beer Coffee.nav-glyphish-example.ui-btn { padding-top: 40px !important; }.nav-glyphish-example.ui-btn:after { width: 30px!important; height: 30px!important; margin-left: -15px !important; box-shadow: none!important; -moz-box-shadow: none!important; -webkit-box-shadow: none!important; -webkit-border-radius: 0 !important; border-radius: 0 !important; } #chat:after { background: url(“img/glyphish-icons/09-chat2.png") 50% 50% no-repeat; background-size: 24px 22px; } # after { background: url("img/glyphish-icons/18-envelope.png") 50% 50% no-repeat; background-size: 24px 16px; } #login:after { background: url("img/glyphish-icons/30-key.png") 50% 50% no-repeat; background-size: 12px 26px; } #beer:after { background: url("img/glyphish-icons/88-beermug.png") 50% 50% no-repeat; background-size: 22px 27px; } #coffee:after { background: url("img/glyphish-icons/100-coffee.png") 50% 50% no-repeat; background-size: 20px 24px; } #skull:after { background: url("img/glyphish-icons/21-skull.png") 50% 50% no-repeat; background-size: 22px 24px; }