App Customization. Introduction  Not all Android apps look the same  i.e. the default bland black and white look  Most have custom looks like  Background.

Slides:



Advertisements
Similar presentations
Using Microsoft PowerPoint in the Classroom
Advertisements

Presented by: Benefits Systems Support. Getting Started ê Open Powerpoint, create a blank presentation. ê Select a style for your first slide from the.
Advanced Microsoft Word On the File tab click New. Click on the type of Template you would like to use (i.e.: Faxes). Click on the specific template.
Using Visio for Network Diagrams. Visio The basic idea is that Visio provides connectable devices. Everything else flows from that concept.
FIRST COURSE PowerPoint. XP New Perspectives on Microsoft Office 2007: Windows XP Edition2 What Is PowerPoint? PowerPoint is a powerful presentation graphics.
COMPREHENSIVE PowerPoint Tutorial 3 Adding Special Effects to a Presentation.
Creating Android user interfaces using layouts 1Android user interfaces using layouts.
GAO YUAN We are here for:  We know iPhone from iOS Human Interface Guidelines  The guidelines and principles that help you.
Mastering Your Word Processing Skills
Android: versions Note that: Honeycomb (Android v3.0) A tablet-only release Jelly Bean (Android v4.1) Released on July 09, 2012.
Chapter 10: Move! Creating Animation
How-To: Office XP PowerPoint By Allen Kuceba PowerPoint The infamous white screen intimidates many new users when they start a new PowerPoint These steps.
Chapter 4 Adding Images. Chapter 4 Lessons Introduction 1.Insert and align images 2.Enhance an image and use alternate text 3.Insert a background image.
Instructor: Mr. Azhar Maqsood 1 Outlines Introduction to PowerPoint Creating a new presentation Applying a New Theme Open and view an existing PowerPoint.
Chapter 2: Simplify! The Android User Interface
Microsoft FrontPage 2003 Illustrated Complete Working with Pictures.
Chapter 2 The Android User Interface. Objectives  In this chapter, you learn to:  Develop a user interface using the TextView, ImageView, and Button.
Android Boot Camp for Developers Using Java, 3E
Resources. Application Resources Resources are strings, images, and other pieces of application information that are stored and maintained (externalized)
Android Boot Camp for Developers Using Java, Comprehensive: A Guide to Creating Your First Android Apps Chapter 2: Simplify! The Android User Interface.
How to Create a PowerPoint Presentation. Starting PowerPoint Click 4 th grade folder Find power point in list Highlight and Click on.
Key Applications Module Lesson 20 — Enhancing Presentations with Multimedia Effects Computer Literacy BASICS.
Chapter 13: AutoCAD DesignCenter. After completing this Chapter, you will be able to use the following: Overview of DesignCenter Container, Content Type.
Introducing Cascading Style Sheets. Cascading Style Sheet Basics  Cascading Style Sheet Basics  Creating Styles  Using Styles  Manipulating Styles.
Adding Images. XHTML Element ElementAttributeAttribute Value Closing tag AttributeAttribute Value The src attribute supplies the name and location of.
© 2004 by the McGraw-Hill Companies, Inc. All rights reserved. Lecture 29 Enhancing Presentations with Graphics (2)
PowerPoint Presentation Part I Creating a PowerPoint Presentation The Basics.
Power Point Introduction to Computers. Opening and Viewing Presentations Click on the Start button (bottom-left of your screen). From the popup menu displayed.
1 PRESENTER NAME TITLE SUBTITLE Date:. MAIN SECTION (Title Slide)
© 2011 Delmar, Cengage Learning Chapter 4 Adding Images.
ANDROID AND MODEL / VIEW / CONTROLLER. Slide 2 Design Patters Common solutions to programming problems are called design patterns Design patterns are.
MAKING YOUR FIRST PRESENTATION GRADE 9 MISS L. MCVEIGH ROOM PowerPoint Enter.
© 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.
Scratch Part 3 – Creating a level. What you will be doing.  You will make the first level to your game.  You need to think about the following when.
European Computer Driving Licence Module 6 – Presentation Chapter 6.3 – Applying Designs.
PhotoShop Creative Suite 3 Chapter 1 The Work Area.
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 Manifest Калин Кадиев Astea Solutions AD.
PowerPoint Basics Technology Summit University of Denver February 27, 2004.
2020 Company Confidential. GSV Global Styles Validations.
Mobile Software Development for Android - I397 IT COLLEGE, ANDRES KÄVER, WEB:
Why use PowerPoint? Attracts attention Motivates DynamicAnimated Visual.
CHAPTER 1 part 1 Introduction. Chapter objectives: Understand Android Learn the differences between Java and Android Java Examine the Android project.
Chapter 2: Simplify! The Android User Interface
PowerPoint PowerPoint is a presentation software package. With PowerPoint, you can easily create slide shows. Trainers and other presenters use slide shows.
Permeability (% of Control)
Permeability (% of Control)
Chapter 4: Explore! Decision-Making Controls
PhotoShop Creative Suite 3
Template and Style Guides
lec 07 Graphics Animations Location Services (GPS)
MAD.
Politeknik Elektronika Negeri Surabaya
European Computer Driving Licence
Adding Images.
CS323 Android Getting Started
Introduction to PowerPoint
Adding Images.
European Computer Driving Licence
Adding Images.
Web4Labels 3.1 Colour and logo definition features
Adding Images.
Adding Images.
Use a Large Bold Type for the Main Title (80 pt):
Permeability (% of Control)
Use a Large Bold Type for the Main Title (80 pt):
Use a Large Bold Type for the Main Title (70 pt):
Permeability (% of Control)
Use a Large Bold Type for the Main Title (70 pt):
Presentation transcript:

App Customization

Introduction  Not all Android apps look the same  i.e. the default bland black and white look  Most have custom looks like  Background images  Coloured text  Image Icons/Buttons  Animation  Etc.

Basic Image Concepts

Images  Images are placed in the drawable folders of /res  There are three drawable folders, one for each category of screen size  drawable-hdpi  drawable-mdpi  drawable-ldpi  Each folder corresponds to resources to be used for a specific screen size category

Image Size Categories  Android defines 3 broad image size categories  hdpi, mdpi, ldpi  Each one should hold resources appropriate to the size  This is needed due to Android’s automatic resizing  Resizing smaller images results in lower quality on larger screens  Images should have the same name in each category  Supported image types are: PNG and JPG

Multiple Screen Support

ImageView  Images can be easily added to an existing View Hierarchy  An ImageView is a type of View used to hold an image  Used as a placeholder for images  E.g. for icons on a menu

Example  The image used is specified using  The name of the image is the image filename in the drawable folder  i.e. either icon.png or icon.jpg  Layouting parameters automatically stretch a smaller image to a larger space or shrink a larger image to a smaller space as needed <ImageView android:layout_width=“wrap_content" android:layout_height="match_parent">

Customizations

Overview  Several aspects of the UI can be directly customized in XML  Widget Customization  Activity Customization  Styles  Themes

Basic widget customizations  Views have several properties that affect its look, for example:  Layouting  android:layout_width  android:layout_height  Background  android:background – used to specify a background image for the view  Text-based Views  android:textColor  android:typeface

Basic properties  There are dozens of basic properties to discuss all of them  Most of them you will have to do trial-and-error to discovery what they do (though their names are usually informative enough)  Use the Graphical Editor to see a listing of all the available properties per View or look at each View JavaDoc for a full list of all applicable attributes  For example TextView  file:///C:/android-sdk- windows/docs/reference/android/widget/TextView.html #lattrs file:///C:/android-sdk- windows/docs/reference/android/widget/TextView.html #lattrs

Styles

Styles  Android Styles ≈ Cascading Style Sheets (CSS) in HTML  Collection/combination of view properties grouped together as a logical entity  layout_width, layout_height, background, font size, font color, padding, …  A style is defined in an XML resource that is separate from the XML that specifies the layout  This can then be applied to specific Views/Layouts by specifying it as an attribute

Effect of styles  Reduces redundant configuration  Easier to globally replace this configuration consistently

Defining a style  To create a set of styles, save an XML file in the res/values/ directory of your project.  The name of the XML file is arbitrary, but it must use the.xml extension and be saved in the res/values/ folder.  The root node of the XML file must be  For each style you want to create, add a element to the file with a name that uniquely identifies the style (this attribute is required).  Then add an element for each property of that style, with a name that declares the style property and a value to go with it (this attribute is required).  The value for the can be a keyword string, a hex color, a reference to another resource type, or other value depending on the style property.

Example Save this XML file in /res/values/ fill_parent wrap_content #00FF00 monospace

Style inheritance  The parent attribute in the element lets you specify a style from which your style should inherit properties.  You can use this to inherit properties from an existing style and then define only the properties that you want to change or add. fill_parent wrap_content #00FF00 monospace

Platform styles  In addition to inheriting from styles you create, there are many available built- in styles defined in Android from which you can inherit and reuse  file:///C:/android-sdk- windows/docs/guide/topics/ui/themes.h tml#PlatformStyles file:///C:/android-sdk- windows/docs/guide/topics/ui/themes.h tml#PlatformStyles

Styles and Activity  Activities can also be “styled” to a degree  By styling the outermost Layout holding the rest of the View hierarchy  The most common styling that is applied to a background are  Changing the background color  Supplying a backgroud image

Example  Setting the background image of an activity <LinearLayout xmlns:android=" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent“ > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" />

Example  Setting the background color of an activity using the hex color value <LinearLayout xmlns:android=" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent“ android:background="#FF0000" > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" />

More to come  More activity customizations, menu customizations and themes  E.g. Fullscreen style apps, icons in menus  Customized Dialogs and Toasts  Specific widget customizations  Button – hover/select effects  ListView – hover/select effects