Android Development: Basic Widgets Richard S. Stansbury 2015.

Slides:



Advertisements
Similar presentations
Programming with Android: Application Resources Luca Bedogni Marco Di Felice Dipartimento di Scienze dell’Informazione Università di Bologna.
Advertisements

Hello world Follow steps under the sections “Create an AVD” and “Create a New Android Project” at
Application Fundamentals. See: developer.android.com/guide/developing/building/index.html.
Who Am I And Why Am I Here I’m professor Stephen Fickas in CIS – you can call me Steve. I have a research group that works with mobile devices (since 1995!)
More Java: Encapsulation, Getters, Setters, Anonymous Class 1 CS300.
User Interface Android Applications. Activities An activity presents a visual user interface. Each activity is given a default window to draw in. The.
1 CSCE 4013: Mobile Systems Programming Nilanjan Banerjee Mobile Systems Programming University of Arkansas Fayetteville, AR
Android Form Elements. Views Provide common UI functionality Form elements: text area, button, radio button, checkbox, dropdown list, etc. Date and time.
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
Introduction to Android Development CS 5115 Fall 2013 September 23.
Creating Android user interfaces using layouts 1Android user interfaces using layouts.
Mobile Programming Lecture 1 Getting Started. Today's Agenda About the Eclipse IDE Hello, World! Project Android Project Structure Intro to Activities,
Android development the first app. Andoid vs iOS which is better? Short answer: neither Proponents on both sides For an iOS side, see this article on.
Android Development: Application Layout Richard S. Stansbury 2015.
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Modify Android Objects Using.
Welcome to Android!. Let’s review what we know about the web Structure is _________ Presentation is ___________ Behavior is ___________ HTML CSS JavaScript.
PROG Mobile Java Application Development PROG Mobile Java Application Development Developing Android Apps: Components & Layout.
Mobile Programming Lecture 2 Layouts, Widgets, Toasts, and Event Handling.
Hello world Follow steps under the sections “Create an AVD” and “Create a New Android Project” at
Intro to Android Development Ben Lafreniere. Getting up and running Don’t use the VM! ials/hello-world.html.
Chapter 5 Creating User Interfaces GOALS and OBJECTIVES Begin our application by creating our user interface. More than one way to create a user interface.
Android Layouts. Layouts Define the user interface for an activity Layouts are defined in.xml files – within /res/layout folder – different layout can.
Understanding Hello Android 1 CS300. Activity  Similar to a form  Base class for the visual, interactive components of your application  Android API.
CP2022 Multimedia Internet Communication1 HTML and Hypertext The workings of the web Lecture 7.
1/29/ Android Programming: FrameLayout By Dr. Ramji M. Makwana Professor and Head, Computer Engineering Department A.D. Patel.
INTRODUCTION TO ANDROID. Slide 2 Application Components An Android application is made of up one or more of the following components Activities We will.
전광판 만들기 UNIT 04 로봇 SW 콘텐츠 교육원 조용수. 학습 목표 Layout XML 이란 ? 기본 XML 속성 Text View 2.
Programming with Android: Layouts, Widgets and Events Luca Bedogni Marco Di Felice Dipartimento di Scienze dell’Informazione Università di Bologna.
Application Development for mobile Devices
Copyright© Jeffrey Jongko, Ateneo de Manila University Basic Views and Layouts.
ANDROID – DRAWING IMAGES – SIMPLE EXAMPLE IN INTERFACE AND EVENT HANDLING L. Grewe.
Chapter 14 © 2014 by Pearson Education Overview of Android - Blackberry smart phone appeared in 2003 – First widely used mobile access to the Web.
First Venture into the Android World Chapter 1 Part 2.
MOBILE COMPUTING D10K-7D02 MC04: Layouts Dr. Setiawan Hadi, M.Sc.CS. Program Studi S-1 Teknik Informatika FMIPA Universitas Padjadjaran.
HW#9 Clues CSCI 571 Fall, HW#9 Prototype
MOBILE COMPUTING D10K-7D02 MC05: Android UI Design Dr. Setiawan Hadi, M.Sc.CS. Program Studi S-1 Teknik Informatika FMIPA Universitas Padjadjaran.
Copyright© Jeffrey Jongko, Ateneo de Manila University Deconstructing HelloWorld.
CS378 - Mobile Computing User Interface Basics. User Interface Elements View – Control – ViewGroup Layout Widget (Compound Control) Many pre built Views.
Simple Copying an Android project in Eclipse Reference: existing-project-with-a-new-name 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.
BUILDING A SIMPLE USER INTERFACE. In this lesson, you create a layout in XML that includes a text field and a button. In the next lesson, your app responds.
COMP 365 Android Development.  Developing for Android  XML for user interface formatting and other scripting  Java for programming.
More App Customizations. Overview  Application/ Activity Customizations: Themes  Menu Customizations  Custom Dialogs  Custom Toasts  Custom Buttons.
Android 基本 I/O. 基本 I/O 介面元件 在此節中主要介紹常見的 I/O 使用者介 面元件 – Button, TextView, 以及 EditText , 學習者可以學會: – Android 的視窗表單設計 res/layout/main.xml – Android SDK –
Http :// developer. android. com / guide / topics / fundamentals. html.
ANDROID LAYOUTS AND WIDGETS. Slide 2 Introduction Parts of the Android screen Sizing widgets and fonts Layouts and their characteristics Buttons, checkboxes.
You have to remember that  To create an AVD(Android Virtual Device)  The Structure of Android Project  XML Layout  The advantage of XML Layout  Android.
Android apps development - Eclipse, Android SDK, and ADT plugin Introduction of.
CMPE419 Mobile Application Development Asst.Prof.Dr.Ahmet Ünveren SPRING Computer Engineering Department Asst.Prof.Dr.Ahmet Ünveren
Mobile Applications (Android Programming)
14.1 Overview of Android - Blackberry smart phone appeared in 2003
Lecture 3 Zablon Ochomo Android Layouts Lecture 3 Zablon Ochomo
Android Programming Lecture 3.
Mobile Application Development Chapter 3 [Using Eclipse Android Studio for Android Development] IT448-Fall 2017 IT448- Fall2017.
Android Development: Advanced Widgets using Adapters
Mobile Application Development Chapter 4 [Android Navigation and Interface Design] IT448-Fall 2017 IT448- Fall2017.
Android SDK & App Development
Android Layout Basics Topics
Mobile Computing With Android ACST 4550 Android Layouts
Chapter 2: Model View Controller, GUI Components, Events
BMI Android Application will take weight and height from the users to calculate Body Mass Index (BMI) with the information, whether user is underweight,
Android Developer Fundamentals V2
Android Developer Fundamentals V2
Android Developer Fundamentals V2
Building a Simple User Interface
User Interface Screen Elements
User Interface Screen Elements
CS 240 – Advanced Programming Concepts
Presentation transcript:

Android Development: Basic Widgets Richard S. Stansbury 2015

Widgets Widgets are display elements that compose the layout of the Android application Common examples: – Labels – Form elements – Images – Maps – etc.

Widget Configuration Elements ID for first declaration for future declarations – in java you can use: findViewById(R.id. ) Dimensions – layout_width, layout_height Possible values: a dimension, wrap_content, match_parent E.g. <TextView android:id = android:layout_width=“wrap_content” android:layout_height=“wrap_content”

Widget: TextView Displays a text label – Attributes: android:typeface - – See peface.html peface.html android:textStyle – bold, italic, bold_italic android:textColor – RGB or ARGB android:text = ” Let’s look at some real examples in Eclipse…

Widget:Button Produces a clickable element Common attributes: – Many of the same as TextView – android:onclick=“ ” States click handler method Useful for many simple layouts Not useful for fragments Look at example in Eclipse… Refer to the build task that you had last Friday…

Widget:EditText Permits text entry oid/widget/EditText.html oid/widget/EditText.html Attributes – Many same as TextView – android:inputType – android:hint – android:autotext