Sun Logo


Skin Author's Guide to Adaptive User Interface Technology

Sun JavaTM Wireless Client Software, Version 2.0

Java Platform, Micro Edition

05-2007



Contents

Figures

Tables

Preface

1. Overview

Adaptive User Interface Default Skin

Understanding the Default Skin

Using the Optional Second Skin

Overview of the Adaptive User Interface Process

When to Customize

2. Introducing Adaptive User Interface Elements

Graphic Components

Design Considerations

Skins Implemented on a Single Type of Device

Skins Implemented on Multiple Types of Devices

Color Schemes

Image Backgrounds

Pixels

Visual Vocabulary

Full-Screen Images With Complex Gradients

Screen Rotation

Overview of Skin Property Files

How Skin Property Files Interact

Assigning Value to an Adaptive User Interface Component

Property File Definitions in the skin.xml File

skin.bin Properties Output File

Overview of the skin.bin File

Who Generates the skin.bin File?

Default and Optional Second Skins

procedure iconsmall spaceComparing Default and Optional Second Skins

Working With Graphic Image Files

Default Skin Graphic Files

Optional Second Skin Graphic Files

Converting Images to RAW Format

Specifying RAW Format Parameters

ROMizing Graphic Images

Defining the Romized Property Setting

3. Customizing the skin.xml File

Property Definitions

Defining Integer Properties

integer Property

integer_seq Property

Defining Font Properties

Defining String Properties

Defining Graphic Image Properties

image Property

composite_image Property

Assigning Graphic Images Without File Extensions

4. Referencing the skin_constants.xml File

Table Format Used in This Chapter

System Components

Screen Properties

Title Bar Properties

Scroll Bar Properties

Soft Button Bar Properties

Ticker Properties

System Menu Properties

System Alert Properties

System Widgets

Busy Cursor Properties

Choice Group Properties

Date Editor Properties

Date Field Properties

Gauge Properties

Image Item Properties

Progress Bar Properties

String Item Properties

Text Field Properties

Update Bar Properties

Input Mode Indicator Properties

5. Creating Your Own Skin

procedure iconsmall spaceCustomizing the Default Skin

6. Building the Adaptive User Interface

Setting Up Your Build Environment

procedure iconsmall spaceBuilding on a Linux on i386 Platform for a Linux on i386 Target

procedure iconsmall spaceBuilding on a Linux on i386 Platform for a Linux on ARM Target

procedure iconsmall spaceBuilding on a Win32 on i386 Platform for a JavaCall Porting Layer on i386 Target

Updating the skin.bin File

procedure iconsmall spaceGenerating the skin.bin File for the Default Skin

procedure iconsmall spaceGenerating the skin.bin File for the Optional Second Skin

Using make Variables to Generate the Optional Second Skin

Displaying the Generated Customized Skin

procedure iconsmall spaceDisplaying Your Customized Skin

Building the Full Java Wireless Client Software

Working With ROMized Images

A. Font Resources

Glossary

Index