Mobile Programmming Dr. Mohsin Ali Memon.

Slides:



Advertisements
Similar presentations
MARKETPLACE TRANSITION FROM CLASSIC INTERFACE TO PHOENIX INTERFACE.
Advertisements

CE881: Mobile and Social Application Programming Simon M. Lucas Menus and Dialogs.
Migrating to GUI Conference Migrating to GUI How do you get there from here?
Google Android as a mobile development platform T Internet Technologies for Mobile Computing Olli Mäkinen.
Customizing Outlook. Forms Window in which you enter and view information in Outlook Outlook Form Designer The environment in which you create and customize.
ANDROID PROGRAMMING MODULE 1 – GETTING STARTED
Mac OS X (Mac Operating System 10) was developed by Apple Inc. in In this lesson, you will learn how to navigate, use, and manage files in Mac OS.
Xcode Presentation Tom Pletzke. Creating App from template Launch Xcode Select Tabbed Application.
CS5103 Software Engineering Lecture 08 Android Development II.
Chapter 5: Investigate! Lists, Arrays, and Web Browsers.
Favorite Twitter® Searches App Android How to Program © by Pearson Education, Inc. All Rights Reserved.
Android Boot Camp for Developers Using Java, Comprehensive: A Guide to Creating Your First Android Apps Chapter 5: Investigate! Android Lists, Arrays,
CS378 - Mobile Computing More UI - Part 2. Special Menus Two special application menus – options menu – context menu Options menu replaced by action bar.
© 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.
Creating an Example Android App in Android Studio Activity lifecycle & UI Resources.
First Venture into the Android World Chapter 1 Part 2.
Action Bar Action Bar Contains Logo Application Name Options Menu SW in Android 3.0 and above was HW in Older Versions.
CS378 - Mobile Computing More UI - Part 2. Special Menus Two special application menus – options menu – context menu Options menu replaced by action bar.
CHAPTER 4 Fragments ActionBar Menus. Explore how to build applications that use an ActionBar and Fragments Understand the Fragment lifecycle Learn to.
COMP 143 Web Development with Adobe Dreamweaver CC.
The Flag Quiz app tests your ability to correctly identify 10 flags from various countries and territories.
Microsoft Excel Illustrated Introductory Workbooks and Preparing them for the Web Managing.
Chapter 5: Investigate! Lists, Arrays, and Web Browsers.
My Stuff & More! How to personalize your OSLIS 2.0 “dashboard” and add files to your personal space.
Menus. Menus are a common user interface component in many types of applications. The options menu is the primary collection of menu items for an activity.
Dive Into® Visual Basic 2010 Express
Mobile Applications (Android Programming)
Android Mobile Application Development
Getting Started with Application Software
Weebly Elements, Continued
Microsoft Office Live Meeting 2007
Working in the Forms Developer Environment
Catalogue User Guide
Chapter 2 Starting a Project
BIM 360 Docs – BIM 360 Document Management UI Changes
Holdings Management Adding, Editing, and Assigning Notes
Flipster App for iPad and iPhone
Mobile Application Development Chapter 4 [Android Navigation and Interface Design] IT448-Fall 2017 IT448- Fall2017.
Politeknik Elektronika Negeri Surabaya
Contract Compliance: Search
Mobile Application Development BSCS-7 Lecture # 11
Using Excel with Google Maps
Anatomy of an Android Application
Transition from Classic Interface Phoenix Interface to
An Introduction to Using
BOLD 2.0 Navigation Help Guide.
Catalogue User Guide
Microsoft Windows 2000 Professional
Exploring Microsoft® Access® 2016 Series Editor Mary Anne Poatsy
Granting support access for individuals to Bill to IDs
CS5103 Software Engineering
Chapter 2 – Introduction to the Visual Studio .NET IDE
Oracle Configurator Cloud
Windows xp PART 1 DR.WAFAA SHRIEF.
User Interface overview
Adding Functionality to the App Tip Calculator App Activity and the Activity Lifecycle onCreate is called by the system when an Activity.
Android Developer Fundamentals V2 Lesson 1
This presentation document has been prepared by Vault Intelligence Limited (“Vault") and is intended for off line demonstration, presentation and educational.
How to Develop a Google Assistant App Building voice applications has become a crucial part in staying competitive in the mobile app market. Developers.
Scripts In Matlab.
Mobile Programming Dr. Mohsin Ali Memon.
Creating and Sending Saved Messages
Mobile Programming Dr. Mohsin Ali Memon.
Mobile Programmming Dr. Mohsin Ali Memon.
Shelly Cashman: Microsoft Windows 10
Microsoft Windows 7 Basics
Mobile Programming Dr. Mohsin Ali Memon.
Tutorial Introduction to help.ebsco.com.
User guide for OneDrive
Catalogue User Guide
Presentation transcript:

Mobile Programmming Dr. Mohsin Ali Memon

Using Action bar in Android The action bar (ActionBar) is a menu located at the top of the activity. It can display the activity title, icon, actions which can be triggered, additional views and other interactive items. It can also be used for navigation in your application. The action bar is enabled for devices which specify a target SDK of API version 11 or higher. www.vogella.com/tutorials/AndroidActionBar/article.html

Entries in the Action bar Entries in the action bar are typically called actions. While it is possible to create entries in the action bar via code, it is typically defined in an XML resource file. An action bar, Provides a dedicated space for giving your app an identity and indicating the user's location in the app. Makes important actions prominent and accessible in a predictable way (such as Search). Supports consistent navigation and view switching within apps (with tabs or drop-down lists).

Making an action bar Each menu definition is contained in a separate file in the res/menu folder. The Android tooling automatically creates a reference to this file in the R file, so that the menu resource can be accessed. An activity adds entries to the action bar in its onCreateOptionsMenu() method.

mainmenu.xml file app The show As Action attribute allows you to define how the action is displayed. For example, the if Room attribute defines that the action is only displayed in the action bar if there is sufficient screen space available.

Inflating the menu with actions The MenuInflator class allows to inflate actions defined in an XML file and adds them to the action bar. MenuInflator can get accessed via the getMenuInflator() method from your activity.

Reacting to action selection If an action is selected, the onOptionsItemSelected() method in the corresponding activity is called. 

Customizing the action bar You can change the visibility of the action bar at runtime. The following code demonstrates that. You can also change the text which is displayed alongside the application icon at runtime. The following example shows that. ActionBar actionBar = getActionBar(); actionBar.hide(); // more stuff here... actionBar.show(); ActionBar actionBar = getActionBar(); actionBar.setSubtitle(“Testing Actionbar"); actionBar.setTitle(“MY ACTIONBAR");