Mobile Application Development BSCS-7 Lecture # 9

Slides:



Advertisements
Similar presentations
Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Advertisements

Android UserInterfaces Nasrullah Niazi. overView All user interface elements in an Android app are built using View and ViewGroup objects. A View is an.
MS-Access XP Lesson 1. Introduction to MS-Access Database Management System Software (DBMS) Store data in databases Database is a collection of table.
Programming with Android: Widgets and Events Luca Bedogni Marco Di Felice Dipartimento di Scienze dell’Informazione Università di Bologna.
 User Interface - Raeha Sandalwala.  Introduction to UI  Layouts  UI Controls  Menus and ‘Toasts’  Notifications  Other interesting UIs ◦ ListView.
User Interface Classes.  Design Principles  Views & Layouts  Event Handling  Menus  Dialogs.
By: Jeremy Smith.  Introduction  Droid Draw  Add XML file  Layouts  LinearLayout  RelativeLayout  Objects  Notifications  Toast  Status Bar.
Android Development (Basics)
Android: Layouts David Meredith
Android Boot Camp for Developers Using Java, Comprehensive: A Guide to Creating Your First Android Apps Chapter 9: Customize! Navigating with a Master/Detail.
Chapter 5: Investigate! Lists, Arrays, and Web Browsers.
Department of Mechanical Engineering, LSUSession VII MATLAB Tutorials Session VIII Graphical User Interface using MATLAB Rajeev Madazhy
Frank Xu Gannon University.  Linear Layout  Relative Layout  Table Layout.
Mobile Computing Lecture#11 Adapters and Dialogs.
Create Navigation Drawer Team 2 Zhong Wang Jiaming Dong Philip Wu Lingduo Kong.
Programming Mobile Applications with Android September, Albacete, Spain Jesus Martínez-Gómez.
9 Persistence - SQLite CSNB544 Mobile Application Development Thanks to Utexas Austin.
User Interfaces: Part 1 (View Groups and Layouts).
Data Persistence Nasrullah Niazi. Share Preferences The SharedPreferences class provides a general framework that allows you to save and retrieve persistent.
1 Creating Windows GUIs with Visual Studio. 2 Creating the Project New Project Visual C++ Projects Windows Forms Application Give the Project a Name and.
Click your mouse to continue. The Office Shortcut Bar The Office Shortcut Bar contains program buttons that, when clicked, start new documents or start.
User Interface Android Club Agenda Button OnClickListener OnLongClickListener ToggleButton Checkbox RatingBar AutoCompleteTextView.
HTML Forms. Slide 2 Forms (Introduction) The purpose of input forms Organizing forms with a and Using different element types to get user input A brief.
Video Games list lab 6  At the end of this lab you will be expected to know:  What Views, View Groups, Layouts, and Widgets are and how they relate to.
User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.
MOBILE COMPUTING D10K-7D02 MC05: Android UI Design Dr. Setiawan Hadi, M.Sc.CS. Program Studi S-1 Teknik Informatika FMIPA Universitas Padjadjaran.
1 Android Development Lean and mean introduction Based on a presentation by Mihail L. Sichitiu.
CS378 - Mobile Computing User Interface Basics. User Interface Elements View – Control – ViewGroup Layout Widget (Compound Control) Many pre built Views.
Building User Interfaces Basic Applications
© 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.
Contents Searches related to Android RatingBar Basics Android ratingbar example Android custom ratingbar.
Visual Basic.NET BASICS Lesson 14 Menus and Printing.
CHAPTER 4 Fragments ActionBar Menus. Explore how to build applications that use an ActionBar and Fragments Understand the Fragment lifecycle Learn to.
Mobile Programming Lecture 4 Resources, Selection, Activities, Intents.
Chapter 5: Investigate! Lists, Arrays, and Web Browsers.
Android Programming - Features
CS499 – Mobile Application Development
Implementing Responsive Design
Computing with C# and the .NET Framework
Forms and Reports 09.
Android – Event Handling
Android Application SQLite 1.
Mobile Application Development BSCS-7 Lecture # 8
CONTENT MANAGEMENT SYSTEM CSIR-NISCAIR, New Delhi
SQL MODELER - OPEN There are Three Ways to open the SQL Modeler
Customizaiton of Layouts
Current outstanding balance
Android Widgets 1 7 August 2018
Creation of an Android App By Keith Lynn
Haotian Tang Benjie Miao
ITEC535 – Mobile Programming
Android Programming Lecture 4
Review 2: Material Design and key widgets.
Android Programming Lecture 6
MODULE 7 Microsoft Access 2010
Android ListView Demo.
ANDROID LISTS.
Android Lists and Fragments
Building User Interfaces Basic Applications
Android Topics Custom ArrayAdapters
Android Topics Custom ArrayAdapters Creating an Event Listener
Android Developer Fundamentals V2
Accessing Databases with ADO.NET, Handling Exceptions, and Printing
HNDIT2417 Mobile Application Development
Android Developer Fundamentals V2
Guidelines for Microsoft® Office 2013
Click to edit title TO ADD NEW SLIDE LAYOUTS: Make sure you have the ‘Home’ tab selected at the top of the PowerPoint screen and click the down facing.
Analyzing Data Using Access
Creating Additional Input Items
Unit J: Creating a Database
Presentation transcript:

Mobile Application Development BSCS-7 Lecture # 9

UI Controls – RatingBar RatingBar is an extension of SeekBar and ProgressBar that shows a rating in stars. User can touch/drag or use arrow keys to set rating when using default size RatingBar. Smaller RatingBar style ( ratingBarStyleSmall) and larger indicator-only style (ratingBarStyleIndicator) do not support user interaction and should only be used as indicators. Public Methods int getNumStars()Returns the number of stars shown. float getRating()Gets the current rating (number of stars filled). getStepSize()Gets the step size of this rating bar. boolean isIndicator() void setIsIndicator(boolean isIndicator)Whether this rating bar should only be an indicator (thus non-changeable by the user). synchronized void setMax(int max)Set the range of the progress bar to 0... setNumStars(int numStars)Sets the number of stars to show. setOnRatingBarChangeListener(RatingBar.OnRatingBarChangeListener listener)Sets the listener to be called when the rating changes. setRating(float rating)Sets the rating (the number of stars filled). setStepSize(float stepSize)Sets the step size (granularity) of this rating bar.

UI Controls - RatingBar On button click

UI Controls - RatingBar On RatingBar click

UI Controls - ListView android.widget.ListView ListView is a view group that displays a list of scrollable items. List items are automatically inserted to list using an Adapter that pulls content from a source such as an array or database query and converts each item result into a view that's placed into list. Android provides different subclasses for Adapter class that are used to retrieve data. One of these is ArrayAdapter. Toast clicked item value and position ArrayAdapter<String> adapter = new ArrayAdapter <String> (this,R.layout.lstname,strPrograms); lstName.setAdapter(adapter);

UI Controls - ListView Toast double-clicked item value and position

UI Controls – ImageView Android.widget.ImageView This class displays an arbitrary image. Add image to Resource Add ImageView from Widgets Important property: ScaleType Add code Important method: setImageResource(Resource ID)

To change image on each click

To change specific image on click

UI Controls – SeekBar Android.widget.SeekBar It is an extension of Progressbar that adds a draggable thumb. The user can touch the thumb and drag left or right to set the current progress level or use the arrow keys. Interface of SeekBar SeekBar.OnSeekBarChangeListener A callback that notifies clients when the progress level has been changed. Public methods of Interface void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) Notification that the progress level has changed. onStartTrackingTouch(SeekBar seekBar) Notification that the user has started a touch gesture. onStopTrackingTouch(SeekBar seekBar) Notification that the user has finished a touch gesture.

QUIZ Design the layout of activity containing one button, Two check boxes and two fragments. By default a blank fragment is displayed. When you click on button, Second fragment will be displayed. Immediately a toast message is displayed indicating both check boxes of MainActivity are checked or not. NOTE: Mention names of each widget with a diagram.