【发布时间】:2014-03-05 15:21:25
【问题描述】:
我创建了模拟 7" 平板电脑的 AVD,但它在底部有状态栏,就像在 this image 上一样。 我想在this image 上设置电话布局(右侧按钮除外)- 怎么做? 我基于通用皮肤(QVGA、WSVGA 和 WXGA800-7in)编写了自己的皮肤,代码如下:
parts {
portrait {
background {
image background_port.png
}
}
landscape {
background {
image background_land.png
}
}
device {
display {
width 600
height 1024
x 0
y 0
}
}
}
layouts {
portrait {
width 654
height 1076
color 0xe0e0e0
event EV_SW:0:1
part1 {
name portrait
x 0
y 0
}
part2 {
name landscape
x 1400
y 0
}
part3 {
name device
x 26
y 29
}
}
landscape {
width 1076
height 654
color 0xe0e0e0
event EV_SW:0:0
dpad-rotation 3
part1 {
name portrait
x 1400
y 0
}
part2 {
name landscape
x 0
y 0
}
part3 {
name device
x 29
y 1050
rotation 3
}
}
}
keyboard {
charmap qwerty2
}
network {
speed full
delay none
}
和配置文件:
avd.ini.encoding=ISO-8859-1
hw.lcd.density=160
hw.dPad=no
sdcard.size=50M
hw.cpu.arch=arm
hw.device.hash=-612842536
disk.dataPartition.size=200M
skin.dynamic=no
skin.path=platforms\android-14\skins\SVGA_kp
hw.keyboard.lid=no
hw.keyboard=no
hw.cpu.model=cortex-a8
hw.ramSize=512
tag.id=default
tag.display=Default
hw.device.manufacturer=User
hw.sdCard=yes
hw.mainKeys=yes
hw.accelerometer=yes
skin.name=SVGA_kp
abi.type=armeabi-v7a
hw.trackBall=no
hw.device.name=IdeaTab A1000
hw.sensors.proximity=yes
hw.battery=yes
image.sysdir.1=system-images\android-14\armeabi-v7a\
hw.audioInput=yes
hw.sensors.orientation=no
hw.camera.front=none
hw.gps=yes
snapshot.present=true
vm.heapSize=32
模拟器以纵向模式启动,但操作系统有底部状态栏,就像在 Honeycomb 中一样。
【问题讨论】: