Android: Shapes.

Slides:



Advertisements
Similar presentations
Features and How-to’s Introduction to Computers Mr. Jain
Advertisements

Styles and Themes. Tell me about this XML snippet
©Sara Duncan 1998 Instructions for the game... Click on the text box that says “your text here. Enter your text in the box. Add pizzazz by using graphics.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. M I C R O S O F T ® Customizing Themes and Master Slides Lesson 11.
(MICROSOFT WORD) Screen Elements Special Keys Spelling & Grammar Check Font Face, Size, Style Alignment & Spacing Saving A File Closing MS Word DAY 1.
Chapter 10: Move! Creating Animation
6-2 2D Graphics CSNB544 Mobile Application Development Thanks to Utexas Austin.
Drawables and Skinning Widgets MOBILE SOFTWARE DEVELOPMENT.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 4 1 Microsoft Office FrontPage 2003 Tutorial 4 – Using Shared Borders and Themes.
Mobile Programming Lecture 17 Creating Homescreen Widgets.
CE Applied Communications Technology Android lecture 2 - Structures Android File structure Resources Drawables Layout Values R Class Manifest Running.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. M I C R O S O F T ® Creating Charts Lesson 6.
(Put the titles of both stories and their authors here) A Fairy Tale, Folk Tale, or Legend Comparing and Contrasting Project By (put both of your names.
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Introduction to Android (Part.
Android Hello World 1. Click on Start and type eclipse into the textbox 2.
ANDROID – DRAWING IMAGES – SIMPLE EXAMPLE IN INTERFACE AND EVENT HANDLING L. Grewe.
Course ILT Building custom presentations Unit objectives Modify the designs in a template Build a custom template from a blank presentation, and add graphic.
PowerPoint 2007 Basics Review and Practice File. Insert a Shape 1.Insert any shape 2.Change the shape’s color 3.Change the shape’s style and add a bevel.
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.
Android View Stuff. TextViews Display text Display images???
What is PowerPoint? By Kettina L. Robinson. Unit Questions What do I want to accomplish? What do I want to accomplish? What content do I need to cover?
HW#9 Clues CSCI 571 Fall, HW#9 Prototype
Define WSDL from LDAP Server. Create BPEL Module File -> New Project File -> New Project Choose SOA Choose SOA Choose BPEL Module Choose BPEL Module.
© 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.
50 /1003 / 9120 /12021 / 35 2 / 103 / 618 / 245 / /10011 / 3317 / 345 / 10 2 / 610 / 1524 / 482 / 12.
PowerPoint Lesson 4 Part A - Slide Transitions Save this to your computer folder. Go to the Animations ribbon. Choose a transition to this slide.
Frank Xu Gannon University. A dialog is always created and displayed as a part of an Activity. You should normally create dialogs from within.
TCS Internal Maps. 2 TCS Internal Objective Objective :  MAPS o Integration of Maps.
Android View Stuff. TextViews Display text Display images???
CHOOSE 1 OF THESE.
Basic 2D Graphics in Android. Android Graphics Programming There are many ways to do graphics programming in Android – 2D vs. 3D – static vs. dynamic.
Android Boot Camp for Developers Using Java, Comprehensive: A Guide to Creating Your First Android Apps Chapter 10: Move! Creating Animation 1 Android.
Resources. Android Resources We’ve already talked about the different types of Android Resources DirectoryResource Type anim/XML files that define tween.
Android Mobile Application Development
Android Application 2D Graphics cs.
Lecture 3: Animation & Graphics
Lecture 3 Zablon Ochomo Android Layouts Lecture 3 Zablon Ochomo
Further android gui programming
Lecture 3: Animation & Graphics
Android Moving to a second Activity
Android External Resources
2D Graphics: Part 2.
Document Generation QRG
XML Mihail L. Sichitiu.
Creation of an Android App By Keith Lynn
Politeknik Elektronika Negeri Surabaya
Mobile Application Development BSCS-7 Lecture # 13
Android Introduction Camera.
HNDIT2417 Mobile Application Development
Android SDK & App Development
Android Layout Basics Topics
Android ListView Demo.
CS 3870/CS 5870 Prog 6 Site Map.
Tree Growth Static Add Subtitle Here Your Text Here Your Text Here
Many thanks to Jun Bum Lim for his help with this tutorial.
Darkened picture background with full-color circle (Intermediate)
Android Developer Fundamentals V2 Lesson 4
Mobile Applications (Android Programming)
Lecture 3: Animation & Graphics
CIS 470 Mobile App Development
My Portfolio ABC reading writing math art & music social studies
Interactive Graphic Organizers
Creating a Business Letter
Android: Shapes.
Interactive Graphic Organizers
Interactive Graphic Organizers
Data Base.
Android Sensor Programming
Creating a PowerPoint Presentation
Presentation transcript:

Android: Shapes

Right click on res/drawable select New/Android XML

Supply a filename (small letters) Choose shape as the root element Supply a filename (small letters) Choose shape as the root element. Click Finish.

Enter a gradient element, supply its startColor and endColor attributes. <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" > <gradient android:startColor="#cccccc" android:endColor="#333333" /> </shape>

In your layout add a background attribute and set its value to the xml file you just placed in drawable

The result in Graphical Layout mode.

Add another Android XML file to drawable <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval"> <solid android:color="#3399ff" /> </shape>

Set the TextView’s android:background attribute to &srawable/my_circle

Result of setting TextView’s background to shape (oval)