Android ListView Demo.

Slides:



Advertisements
Similar presentations
Unlocking Android Chapter 4.  Understanding activities and views  Exploring the Activity lifecycle  Working with resources  Defining the AndroidManifest.xml.
Advertisements

Hello world Follow steps under the sections “Create an AVD” and “Create a New Android Project” at
Choose your characters and drag them onto the slide Write your story title here Story by.
Cosc 4730 Android TabActivity and ListView. TabActivity A TabActivity allows for multiple “tabs”. – Each Tab is it’s own activity and the “root” activity.
Android: Layouts David Meredith
 Understanding an activity  Starting an activity  Passing information between activities  Understanding intents  Understanding the activity lifecycle.
Chapter 5: Investigate! Lists, Arrays, and Web Browsers.
Hello world Follow steps under the sections “Create an AVD” and “Create a New Android Project” at
PARSING FACEBOOK DATA FOR ANDROID 1. Step by Step  Import Android SDK  Get the hash key  Create a new app  Create a new project in Eclipse 
Android Boot Camp for Developers Using Java, Comprehensive: A Guide to Creating Your First Android Apps Chapter 5: Investigate! Android Lists, Arrays,
Android Boot Camp for Developers Using Java, Comprehensive: A Guide to Creating Your First Android Apps Chapter 7: Reveal! Displaying Pictures in a GridView.
UI Resources Layout Resources String Resources Image Resources.
Chapter 7: Reveal! Displaying Pictures in a Gallery.
IReport Demo Spring 2008 OEDSA Conference. Report Properties.
Android 3: Exploring Apps and the Development Environment Kirk Scott 1.
© 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.
Android Hello World 1. Click on Start and type eclipse into the textbox 2.
1 Introducing Activity and Intent. 2 Memory LinearLayout, weight=2 LinearLayout, weight=1 TextView ListView.
MOBILE COMPUTING D10K-7D02 MC04: Layouts Dr. Setiawan Hadi, M.Sc.CS. Program Studi S-1 Teknik Informatika FMIPA Universitas Padjadjaran.
Android ImageView and Splash Screen 1. After copying an image file (Ctrl-c or right click copy), right click and paste it into one of the res/drawable.
Building User Interfaces Basic Applications
CHOOSE 1 OF THESE.
Mobile Programming Lecture 4 Resources, Selection, Activities, Intents.
INTRODUCTION TO ANDROID. Slide 2 Introduction I take a top-down approach to describing an application’s anatomy.
CMPE419 Mobile Application Development Asst.Prof.Dr.Ahmet Ünveren SPRING Computer Engineering Department Asst.Prof.Dr.Ahmet Ünveren
Chapter 5: Investigate! Lists, Arrays, and Web Browsers.
Android 3: Exploring Apps and the Development Environment
Android Mobile Application Development
several communicating screens
Further android gui programming
Mobile Application Development BSCS-7 Lecture # 9
Android Moving to a second Activity
Android Development: Advanced Widgets using Adapters
Quick Start Guide for Visual Studio 2010
Android Programming Lecture 6
Android Studio Hello World
ANDROID LISTS.
Create some project. Transferring an Android Application Project from One Instance of Eclipse to another.
Choose your characters and drag them onto the slide
Android Lists and Fragments
CA16R405 - Mobile Application Development (Theory)
Choose your characters and drag them onto the slide
Choose your characters and drag them onto the slide
Building User Interfaces Basic Applications
Choose your characters and drag them onto the slide
TELL ME WHEN YOU FINISH SO WE CAN SAVE
CA16R405 - Mobile Application Development (Theory)
Android Topics Custom ArrayAdapters Creating an Event Listener
Choose your characters and drag them onto the slide
Android: Shapes.
Choose your characters and drag them onto the slide
HNDIT2417 Mobile Application Development
Coding the EV3 using make code
Mobile Applications (Android Programming)
Choose your characters and drag them onto the slide
ListView ? BaseAdapter ?.
Choose your characters and drag them onto the slide
Reactive Android Development
Choose your characters and drag them onto the slide
Choose your characters and drag them onto the slide
Choose your characters and drag them onto the slide
Choose your characters and drag them onto the slide
Choose your characters and drag them onto the slide
Choose your characters and drag them onto the slide
Choose your characters and drag them onto the slide
Android: Shapes.
The system unit processes information.
Choose your characters and drag them onto the slide
Choose your characters and drag them onto the slide
Data Base.
Presentation transcript:

Android ListView Demo

Under the Composite palette drag a ListView onto the activity, give it an id

Right click on res/layout choose New/Other (or XML if it is there)

Choose Android/Android XML File (not just XML file) and click Next

Give the file a name – remember the file name convention small letters numbers underscores and periods. Choose a Root Element. Click Finish.

Resulting XML in Graphical Layout view and xml view

Code for String array, ArrayAdapter, and ListView

Result so far in emulator. Note that the list items are clickable

Code for the OnItemClickListener

Result