Topics of Discussion

Similar documents
Topics of Discussion

Andorid Storage Options

CHAPTER 4. Fragments ActionBar Menus

CPET 565 Mobile Computing Systems CPET/ITC 499 Mobile Computing. Lab & Demo 2 (Part 1-2) Hello-Goodbye App Tutorial

CPET 565 Mobile Computing Systems CPET/ITC 499 Mobile Computing. Lab & Demo 2 (1 &2 of 3) Hello-Goodbye App Tutorial

Tablets have larger displays than phones do They can support multiple UI panes / user behaviors at the same time

EMBEDDED SYSTEMS PROGRAMMING UI and Android

Multiple devices. Use wrap_content and match_parent Use RelativeLayout/ConstraintLayout Use configuration qualifiers

CS371m - Mobile Computing. More UI Action Bar, Navigation, and Fragments

CS371m - Mobile Computing. More UI Navigation, Fragments, and App / Action Bars

Android. The Toolbar

CS378 -Mobile Computing. More UI -Part 2

ANDROID APPS (NOW WITH JELLY BEANS!) Jordan Jozwiak November 11, 2012

Mobile Application Development Android

University of Stirling Computing Science Telecommunications Systems and Services CSCU9YH: Android Practical 1 Hello World

Introduction to Mobile Ubiquitous Computing Systems

CPET 581 Cloud Computing: Technologies and Enterprise IT Strategies

Designing and Implementing Android UIs for Phones and Tablets

CS 4330/5390: Mobile Application Development Exam 1

Fragments were added to the Android API in Honeycomb, API 11. The primary classes related to fragments are: android.app.fragment

Xamarin for C# Developers

HCA Tech Note 120. Configuring the Control UI Home Page. Option 1: HCA constructs the home page

Android Essentials with Java

Action Bar. (c) 2010 Haim Michael. All Rights Reserv ed.

CPET 565/CPET 499 Mobile Computing Systems. Lecture 8. Data Dissemination and Management. 2 of 3

CPET 565/CPET 499 Mobile Computing Systems Lecture on

Android UI DateBasics

USING GOOGLE PRESENTATIONS A New Way to Present

CPET 581 E-Commerce & Business Technologies. Topics

CS 4518 Mobile and Ubiquitous Computing Lecture 5: Rotating Device, Saving Data, Intents and Fragments Emmanuel Agu

Mobile Computing Systems Lecture on

CS 235AM, Mobile Application Development: Android Spring 2016

Copyright 2014, Oracle and/or its affiliates. All rights reserved.

Building User Interface for Android Mobile Applications II

ACTIVITY, FRAGMENT, NAVIGATION. Roberto Beraldi

UI Fragment.

Microsoft Powerpoint 2007

In this topic: Extrac t Style. Inline Style Extract Layout Inline Layout Refactoring

SEVEN ADVANCED ACADEMY

Teaching materials and advanced sample applications for Android platform

Android Application Development using Kotlin

MARS AREA SCHOOL DISTRICT Curriculum TECHNOLOGY EDUCATION

Microsoft Office Outlook 2007: Intermediate Course 01 Customizing Outlook

Course Details. Skills Gained. Who Can Benefit. Prerequisites. View Online URL:

GRAPHIC WEB DESIGNER PROGRAM

Essentials of Developing Windows Store Apps Using HTML5 and JavaScript

Understanding Application

Software Practice 3 Before we start Today s lecture Today s Task Team organization

Android Application Development 101. Jason Chen Google I/O 2008

CS 403X Mobile and Ubiquitous Computing Lecture 3: Introduction to Android Programming Emmanuel Agu

Mobility Management (cont.)

Produced by. Mobile Application Development. David Drohan Department of Computing & Mathematics Waterford Institute of Technology

COMPUTERIZED OFFICE SUPPORT PROGRAM

Mobile Development Lecture 10: Fragments

Malpass Library 637 Phone:

COSC 3P97 Mobile Computing

Fragments and the Maps API

Highline College Busn 216: Computer Applications for Business (Fun and Power with Computers) Office 2016 Video #12: PowerPoint

CS 4518 Mobile and Ubiquitous Computing Lecture 4: Data-Driven Views, Android Components & Android Activity Lifecycle Emmanuel Agu

MOBILOUS INC, All rights reserved

CS 528 Mobile and Ubiquitous Computing Lecture 2a: Introduction to Android Programming. Emmanuel Agu

New Visual Design for IRON HQ Release Notes

Microsoft Office Outlook 2007: Basic Course 01 - Getting Started

Cross listed CRN# CPET Mobile Computing Systems. Fall 2012

Produced by. Mobile Application Development. David Drohan Department of Computing & Mathematics Waterford Institute of Technology

CS 528 Mobile and Ubiquitous Computing Lecture 2a: Android UI Design in XML + Examples. Emmanuel Agu

Lab 19: Excel Formatting, Using Conditional Formatting and Sorting Records

20480B - Version: 1. Programming in HTML5 with JavaScript and CSS3

Building MyFirstApp Android Application Step by Step. Sang Shin Learn with Passion!

ANDROID TRAINING PROGRAM COURSE CONTENT

ANDROID SYLLABUS. Advanced Android

Oracle Fusion Middleware 11g: Build Applications with ADF I

Programming Android UI. J. Serrat Software Design December 2017

Required Core Java for Android application development

Action Bar. Action bar: Top navigation bar at each screen The action bar is split into four different functional areas that apply to most apps.

OUTLINE. Sharing videos. What is National Film Board (NFB)? Creating a free account Commenting on videos Creating a playlist

Learning Microsoft PowerPoint Contents. Chapter 1: Getting Started With PowerPoint

CE881: Mobile & Social Application Programming

CS 528 Mobile and Ubiquitous Computing Lecture 4a: Fragments, Camera Emmanuel Agu

application components

VTRemote An Android Application for the VirtuTrace 3D Simulator

Integrating Sintelix and ANB. Learn how to access and explore Sintelix networks in IBM i2 Analyst s Notebook

Microsoft Office PowerPoint 2016: Part 1. Course Overview

MC Android Programming

DOCQMANAGE FOR MMES LOGGING IN TO DOCQMANAGE VIEWING DICTATORS AND DOCQMANAGE USERS LOGGING OUT OF DOCQMANAGE CHANGING YOUR PASSWORD

Microsoft Word Handout

Prezi Creating a Prezi

Lab 4: Pass the Data Streams to a Match Processor and Define a Match Rule

SharePoint Designer Customizing and Branding SharePoint 2010 and Office 365

Lab 1: Getting Started With Android Programming

PowerPoint TM Tutorial

EMBEDDED SYSTEMS PROGRAMMING Application Basics

Advanced Microsoft Word 2010

Pilot Quick Start Guide for Students

How to use Zinio. April 2017

Fig. 2.2 New Android Application dialog. 2.3 Creating an App 41

Microsoft Power Point Lab Manual

CS378 -Mobile Computing. What's Next?

Q&A Web Application. Senior Project Test Report 1

ANDROID USER INTERFACE

Transcription:

Reference CPET 565 Mobile Computing Systems CPET/ITC 499 Mobile Computing Fragments, ActionBar and Menus Part 1 of 5 Android Programming Concepts, by Trish Cornez and Richard Cornez, pubslihed by Jones & Barlett Learning, pp. 185-278. Paul I-Hai Lin, Professor Spring 2017 A Specialty Course Purdue University M.S. Technology Graduate Program Dept. of Computer, Electrical and Information Technology Purdue University Fort Wayne Campus 1 Topics of Discussion Fragmentation and Android Fragments The Fragment Lifecycle Action Bar Lab Example 4-1: Fragments and the ActionBar: Menu Experiment, pp. 285-298 ActionBar Configurations Overflow and Action Bar Adding an Action View Lab Example 4-2: Unit Calculator App, pp. 305-318 Responsive Design with Fragments Lab Example 4-3: Shades App: A Fragment Experiment, pp. 321-338 2 1

Topics of Discussion Animation in Fragment Transaction Lab Example 4-4: Recipes-Fragments with Transition Animation, pp. 339-382 ListViews and Adaptors Lab Example 4-5: Redlands Music Events App Adapters and ListViews. 353-371 3 Fragments, https://developer.android.com/guide/components/fragments.html A Fragment represents a behavior or a portion of UI in an Activity A Fragment == A Sub Activity A fragment has its own lifecycle, receives its own input events, and which you can add or remove while the activity is running. You can combine multiple fragments in a single activity to build a multi-pane UI and reuse a fragment in multiple activities. 4 2

Fragments, https://developer.android.com/guide/components/fragments.html Each Fragment has its own callback methods in the standard Activity lifecycle oncreatview() oninflate() onactivitycreated() onattach() ondestroyview() ondeatch() 5 ActionBar, https://developer.android.com/reference/android/sup port/v7/app/actionbar.html A primary toolbar within the activity that may display the activity title, application-level navigation affordances, other interactive items. The action bar appears at the top of an activity's window when the activity uses the AppCompat's AppCompat theme (or one of its descendant themes). You may otherwise add the action bar by calling requestfeature(feature_support_action_ba R) or by declaring it in a custom theme with the windowactionbar property. 6 3

ActionBar, https://developer.android.com/training/appbar/index.html Also called App bar which provides information and display control elements to the user. Provides a visual structure and interactive elements Key functions of the app bar A dedicated space for giving your app an identity and indicating the user s location in the app. Access to important actions in a predictable way such as search Support for navigation and view switching ActionBar class, https://developer.android.com/reference/android/support/ v7/app/actionbar.html 7 ActionBar, https://developer.android.com/training/appbar/index.html ActionBar class, https://developer.android.com/reference/android/support/ v7/app/actionbar.html Material Design App Bar, https://developer.android.com/design/patterns/actionbar. html 1. App Icon 2. View Control 3. Action buttons 4. Action overflow 8 4

Navigation with Back and Up, https://developer.android.com/design/patterns/navigation.html 9 Deprecated Methods import android.app.activity; import android.app.actionbar actionbar.setnavigationmode(actionbar.navigation_mode_ TABS); actionbar.tab breakfasttab = actionbar.newtab().settext( getstring(r.string.ui_tabname_breakfast)); actionbar.setselectednavigationitem(savedinstancestate.getint( TAB_KEY_INDEX, 0)) class MyTabsListener implements ActionBar.TabListener { public Fragment fragment; 10 5

ActionBar deprecated methods Deprecated Methods import android.support.v7.app.appcomatactivity setnavigationmode(), addtab(), selecttab() actionbar.setnavigationmode(actionbar.navigation_mode_ TABS); ActionBar.Tab breakfasttab = actionbar.newtab().settext( getstring(r.string.ui_tabname_breakfast)); breakfasttab.settablistener(new MyTabsListener (breakfastfragment, getapplicationcontext())); actionbar.addtab(breakfasttab); 11 ActionBar Depreciated Methods https://developer.android.com/reference/android/support/ v7/app/actionbar.html Use inline toolbar action bars 12 6

Lab 4-1 Fragments and ActionBar: Menu Experiment The ActionBar of an Application Application Icon Action Items Action overflow 13 Lab 4-1 Fragments and ActionBar: Menu Experiment An ActionBar containing Tabs 14 7

Lab 4-1 Fragments and ActionBar: Menu Experiment Project structure MyActity.java BreakfastFragment.java DinnerFragment.java LunchFragment.java SnackFragment.java 15 Lab 4-1 Fragments and ActionBar: Menu Experiment Activity_my.xml contains a LinearLayout for storing fragments res/layout activity_my.xml fragment_breakfast.xml, fragment_lunch.xml fragment_dinner.xml, fragment_snack.xml 16 8

Lab 4-1 Fragments and ActionBar: Menu Experiment The fragment_snack.xml layout shown in landscape orientation 17 Summary Q/A? 18 9