Header, Footer, and Navigation toolbars CIS 136 Building Mobile Apps 1.

Slides:



Advertisements
Similar presentations
Use Tables for Layout Control Day 7. You will learn to: Understand Tables Create a Simple Table Modify Your Tables Appearance Create Page Layouts with.
Advertisements

Chapter 3 – Web Design Tables & Page Layout
JQuery Mobile. Benefits Required links Remember that we need to add the links to the head, in this order.
Twitter Bootstrap. Agenda What is it? Grids and Fluid layouts Globals and Typography Tables, Forms and Buttons Navigation Media and thumbnails Responsive.
CSS Layout Crash Course An Advance CSS Tutorial. Inline vs. Block Many HTML elements have a default display setting of Block. Block elements take up the.
Cascading Style Sheets
Chapter 3 – Designing your web pages Dr. Stephanos Mavromoustakos.
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.
User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.
Principles of Web Design 5 th Edition Chapter Nine Site Navigation.
Creating a Document with a Table, Chart, and Watermark
User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.
TUTORIAL 4: CREATING PAGE LAYOUT WITH CSS Session 4.3.
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. Goals How to use the Komodo editor HTML coding and testing Basic HTML tags List and Images Tables and Links At least 2 pages and navigation
Chapter 6 Working with Frames.
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.
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
CHAPTER 11 Tables. How Are Tables Used Data Display  Very tidy and very useful Better Text Alignment  Putting text in tables allows you to format indents.
CHAPTER 14 Formatting a Workbook Part 1. Learning Objectives Format text, numbers, dates, and time Format cells and ranges CMPTR Chapter 14: Formatting.
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.
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Website Layouts Most websites have organized their content in multiple columns (formatted like a magazine or.
Website Development with Dreamweaver
IDs versus Classes Naming Your Tags for Maximum Functionality.
 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.
Lesson 4 - Revising the Document Layout Microsoft Word 2010.
 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.
Lesson 05 // Web Design, Layout & Structure 1.Web Design/Designer-Coder Relationship 2.Fixed vs Fluid Website Layouts 3.Screen Resolutions.
© 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 10 Managing and Printing Documents 3 Working with Files and Printing You can open multiple documents in Word. When multiple documents are.
Chapter 2 Web Page Design Mr. Gironda. Elements of a Web Page These are things that most web pages use.
Today’s Agenda Advanced CSS Techniques Floating Z-index Centering Sliding Doors Fluid Layouts CSS3 Advanced CSS Lab Mini Project #2.
Principles of Web Design 6 th Edition Chapter 9 – Site Navigation.
1 Lesson 13 Organizing and Enhancing Worksheets Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
INTRODUCTORY Tutorial 5 Using CSS for Layout and Printing.
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.
Microsoft FrontPage 2003 Illustrated Complete Creating a Frames Page.
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.
Lesson 12-Page Numbers, Headers, and Footers. Overview Add page numbers. Vary page numbers in Print Layout view. Add headers and footers. Work with headers.
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.
Cascading Style Sheets Boxes
CSS Layouts: Positioning and Navbars
Microsoft Office 2007-Illustrated
Formatting a Worksheet
Advanced CSS BIS1523 – Lecture 20.
CIS 136 Building Mobile Apps
Tutorial 6 Topic: jQuery and jQuery Mobile Li Xu
Lists, Thumbnails, and Icons
Buttons, Headers, Footers, and Navigation
Windows Internet Explorer 7-Illustrated Essentials
Fixed Positioning.
SEEM4570 Tutorial 5: jQuery + jQuery Mobile
Buttons, Headers, Footers, and Navigation
Objectives At the end of this session, students will be able to:
CSS Boxes CS 1150 Fall 2016.
Multipage Sites.
Microsoft Office Illustrated Fundamentals
Welcome To Microsoft Word 2016
Presentation transcript:

Header, Footer, and Navigation toolbars CIS 136 Building Mobile Apps 1

Header ToolBars Cis136 – Building Mobile Apps 2

Header toolbars 3  The header is located at the top of the page and usually contains a page title/logo or one or two buttons  Button can be used for navigation or links to related pages  You can add buttons to the left and/or to the right side in the header (center is used for text)  In header, HTML tag generates the button shape  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 4  JQM CSS classes are available to help position buttons  Useful if you only want one button  ui-btn-left – forces button on left side  ui-btn-right - forces button on right side Welcome To My Homepage Search

Global and Button CSS Classes 5

Icons 6  JQM provides a set of icons that will make your buttons look more desirable, via the the ui-icon class Home Welcome To My Homepage Search

Icon positioning 7  Can also 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  May have overlay issues as shown below  Resolve by moving icon or widening header toolbar Search

Icon CSS Classes 8

9

10

Data-icon attribute 11  Instead of using CSS styles, can use data-icon attribute, assigning value of icon style Home Welcome To My Homepage Search

Buttons Cis136 – Building Mobile Apps 12

JQM buttons - Overview 13  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 in the Content section:  Using the element  Using the element with class="ui-btn"  Using the element with class="ui-btn  Using the element with data-role=“button”  tag in header, do not need data-role on tag  tag in content, you do  Experiment to find out

Creating Buttons in Content Section 14  To link between pages by buttons, use the element  add class ui-btn inside the anchor tag  Button goes to edges – in essence a toolbar look  Page 2  Can also set the date-role attribute  Gets the rounded corners and doesn’t go to edges  Page 2

In-line buttons 15  In Content area, 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 16  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 Link and Back Buttons 17  Some phones do not have back button hardware  To create a Back link, use the data-rel="back" attribute  this will ignore the anchor's href value Go Back  To create a Back button, include attribute data-add-back- btn=“true” on the tag defining the data-role=“page”  Can also add specific text using data-back-btn-text and setting it equal to the text for the button

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

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

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

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

Button Icons - continued 22  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 23  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"

Data-Roles - buttons 24 Learn more at  Show page "two“  data-inline=“true” causes button to only be as wide as content View Two View of Page two' Back to page "one" Page Footer Multi-page View of Page 'one' To show internal pages: Show page "two“ Page Footer

Misc notes 25  If you want to use more than one class  separate each class with a space Home Welcome To My Homepage  Buttons in Content section are defined differelty from buttons in other sections  By default, buttons have shadow and rounded corners  the and element do not  Experiment

Footer ToolBars Cis136 – Building Mobile Apps 26

Footer toolbars 27  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  buttons in a footer do not automatically position themselves to the left and right of the text Add Me On Facebook Add Me On Twitter Add Me On Instagram

Footer toolbars (cont.) 28  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

Fixed and full-screen headers and footers Cis136 – Building Mobile Apps 29

Fixed position 30  On long pages, headers and footers may not be visible  Can fix the position of each prevent scrolling past  the header and footer will always be visible  Add data-position=“fixed” inside tag for data-role=“header” or data-role=“footer” My Header  while scrolling up and down, as soon as the user lifts their finger off, the header and footer will both pop in

Full screen 31  the header and footer appear and disappear with clicks  best used when you want the content of the page to be viewed by itself  excellent example of this would be pictures  add data-fullscreen="true" to the header and footer tags in a page My Header

Navigation Bars Cis136 – Building Mobile Apps 32

Navigation bars 33  A navigation bar consists of a group of links that are aligned horizontally, typically within a header or footer  Are full-screen-wide bars used to hold buttons  Supports highlighting one button at a time as an active button

Navigation bars 34  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 35  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 36  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 37  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 38  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 39  For multiple pages, you might want the "selected" look for each button that represents the page the user is on  Won’t disappear when user switches pages  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 40  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 www. glyphish.com. Licensed under the Creative Commons Attribution 3.0 United States License

Third-party 41 Chat Mail Exit Vacation Desert.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: 50% 50% no-repeat; background-size: 24px 22px; } #mail:after { background: 50% 50% no-repeat; background-size: 24px 16px; } #vacation:after { background: url("img/sample-305-palm-tree.png") 50% 50% no-repeat; background-size: 22px 27px; } #desert:after { background: 50% 50% no-repeat; background-size: 20px 24px; } #exit:after { background: 50% 50% no-repeat; background-size: 22px 24px; }

Learn more at 42  