diff options
author | Eric Fischer <enf@google.com> | 2010-09-15 15:59:21 -0700 |
---|---|---|
committer | Eric Fischer <enf@google.com> | 2010-09-23 10:32:47 -0700 |
commit | 90964040cabfc67f92a7c3322a02401bb6f8ae82 (patch) | |
tree | 52f1ce1de971a071026a12e145837e015e60d26a /policy/src | |
parent | 89647b1172cdf40a3681922150122b0bd2ea83f1 (diff) | |
download | frameworks_base-90964040cabfc67f92a7c3322a02401bb6f8ae82.zip frameworks_base-90964040cabfc67f92a7c3322a02401bb6f8ae82.tar.gz frameworks_base-90964040cabfc67f92a7c3322a02401bb6f8ae82.tar.bz2 |
Add an aapt option to allow string variations for different devices.
The --product option to aapt is a comma-separated list of characteristics
of the device being built for. For example, --product nosdcard,grayscale
for a device with no SD card and a grayscale screen.
Strings can specify a product="characteristic" option to cause that version
of the string to be used only for that type of device. All such strings
should also specify, at the end of the block, product="default", which
will be used if none of the variations match. For example:
<string name="choose" product="bw">Choose black or white</string>
<string name="choose" product="grayscale">Choose a shade of gray</string>
<string name="choose" product="default">Choose a color</string>
The default characteristic will also be used when no --product option
is specified.
Change-Id: Ie6c1505599e02e15b7818e8be6ec47bc6ce71aaa
Diffstat (limited to 'policy/src')
0 files changed, 0 insertions, 0 deletions