Chinaunix首页 | 论坛 | 博客
  • 博客访问: 231592
  • 博文数量: 68
  • 博客积分: 2010
  • 博客等级: 大尉
  • 技术积分: 612
  • 用 户 组: 普通用户
  • 注册时间: 2007-01-04 22:38
文章分类

全部博文(68)

文章存档

2010年(2)

2009年(12)

2008年(54)

我的朋友

分类: C/C++

2008-11-07 10:54:00

Home Screen layout and functionality are specified in a Home Screen XML file (filename.home.xml).

The file that defines the plug-ins that are displayed on the screen, specifies their default formatting, and sets the watermark and branding for the Home screen. A Home Screen XML file begins with the tag and ends with the tag.

Home Screen layouts are written by using an XML-based document format and are stored in individual files with a .home.xml file extension. Only a few basic elements, in addition to a common set of attributes, are described. Plug-in authors can support additional free-form XML content within the plug-in element as needed. All element and attribute names are case-sensitive.

To insert plug-ins into the layout, define a Plugin element in the tag block for each plug-in. The following elements are required for a Plugin element:

Element Description

Author

Name of the company that created the layout.

ContactUrl

Uniform Resource Locator (URL) for more information about the layout.

Title

Title of the layout. Used in the Home Screen Settings control panel where users select the layout to use. The Lang attribute identifies the language of the tag's content.

Version

Version identification for the scheme. The author of the layout determines the format.

In addition to the required elements, the following optional elements are used to define the actual layout of the screen and its content:

Element Description

Plugin

Inserts a plug-in into the layout. The clsid value is a unique identifier of the plug-in.

Background

Formats the background of a plug-in or the Home screen.

Format

Controls the formatting of text in a plug-in.

Default

Specifies the default background and formatting attributes for all plug-ins in the layout.

Elements that accept file location attributes, such as the Plugin element and the file locations or background images used as watermarks, use standard Windows-style file references, for example: \windows\bimage.bmp.

The following XML code is an example for a simple Home Screen file. It includes two basic plug-ins: the Carrier/SIM plug-in and the Icon Bar plug-in.

Copy Code


  Example
  
  Example Home Screen
  1.0
  
  
    
  
  
    
    
    
    
    
    
    
  
  
    
    
  
  
    
    
      
    
    
    
      
  
源自MSDN
阅读(478) | 评论(0) | 转发(0) |
0

上一篇:超级终端使用简介

下一篇:SQL语句大全

给主人留下些什么吧!~~