Android studio中模拟器(avd)隐藏导航栏,调整dpi

一.配置Android studio中模拟器(avd)——隐藏导航栏
1.找到文件config.ini【一般在E:\avd\Pixel_2_API_29.avd】
2.配置如下:

AvdId = Pixel_2_API_29
PlayStore.enabled = true
abi.type = x86
avd.ini.displayname = Pixel 2 API 29
avd.ini.encoding = UTF-8
disk.dataPartition.size = 6442450944
fastboot.chosenSnapshotFile = 
fastboot.forceChosenSnapshotBoot = no
fastboot.forceColdBoot = no
fastboot.forceFastBoot = yes
hw.accelerometer = yes
hw.arc = false
hw.audioInput = yes
hw.battery = yes
hw.camera.back = virtualscene
hw.camera.front = emulated
hw.cpu.arch = x86
hw.cpu.ncore = 2
hw.dPad = yes   		//隐藏导航栏将no改成yes
hw.device.hash2 = MD5:55acbc835978f326788ed66a5cd4c9a7
hw.device.manufacturer = Google
hw.device.name = pixel_2
hw.gps = yes
hw.gpu.enabled = yes
hw.gpu.mode = auto
hw.initialOrientation = landscape
hw.keyboard = yes
hw.lcd.density = 160		//配置屏幕dpi
hw.lcd.height = 1920
hw.lcd.width = 1080
hw.mainKeys = yes			//隐藏导航栏将no改成yes
hw.ramSize = 1536
hw.sdCard = yes
hw.sensors.orientation = yes
hw.sensors.proximity = yes
hw.trackBall = no
image.sysdir.1 = system-images\android-29\google_apis_playstore\x86\
runtime.network.latency = none
runtime.network.speed = full
sdcard.size = 512M
showDeviceFrame = yes
skin.dynamic = yes
skin.name = pixel_2
skin.path = C:\Users\extiovrd05\AppData\Local\Android\Sdk\skins\pixel_2
tag.display = Google Play
tag.id = google_apis_playstore
vm.heapSize = 256

二、调整模拟器本地存储位置
1.找到模拟器默认创建位置【C:\Users\username.android\avd】
2.将文件夹Pixel_2_API_29.avd 复制到要保存的位置,我这里是存储在D:\avd文件夹下。
3.调整C:\Users\username.android\avd\Pixel_2_API_29.ini中的path=D:\avd\Pixel_2_API_29.avd
完成。

  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值