From 2ed75275928cbccd3c30b12856866a61442363ff Mon Sep 17 00:00:00 2001 From: Siva Velusamy Date: Thu, 4 Oct 2012 17:44:27 -0700 Subject: Support dynamic skin layout This CL adds support for a skin whose layout section is generated at runtime based on the hardware configuration. Change-Id: I5f81f665b49ce0f3ec5795d922a08b30c1f34b98 --- docs/ANDROID-SKIN-FILES.TXT | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/ANDROID-SKIN-FILES.TXT b/docs/ANDROID-SKIN-FILES.TXT index 004f83d..edd7545 100644 --- a/docs/ANDROID-SKIN-FILES.TXT +++ b/docs/ANDROID-SKIN-FILES.TXT @@ -1,8 +1,10 @@ Android Emulator Skin File Specification: ========================================= +Revisions: +---------- Revision 2. Dated 2009-12-07 - + Dynamic Layout support added 10/2012 Introduction: ------------- @@ -18,6 +20,9 @@ corresponding to different orientation / physical configurations of the emulated handset. This document specifies how to generate a new skin for the emulator. +The emulator also supports dynamically creating the layout section of +the skin, thereby removing the necessity to create skins for each new +handset type. See the last section regarding info on dynamic controls. General File Format: -------------------- @@ -219,3 +224,16 @@ file instead: - 'network.delay': Default network latency for this skin. Values correspond to the -netdelay emulator command-line option. + +Dynamic Layouts: +---------------- + +The emulator also supports a skin that is dynamically generated. This +skin (present in folder "dynamic" in the skins folder) follows the same +format as other skins, except that it only defines the list of parts/controls +that can be used in the skin. The layouts section is generated at +runtime by the emulator. The parts section describes all the controls that +can be used in any handset. All these parts have both an enabled and a +disabled version defined in the skin, and at runtime the emulator reads +the hardware definition and decides which of those two controls to actually +use. -- cgit v1.1