第一件事,
使用 Android Studio 2.3.3
问题:
我的模拟器屏幕覆盖了模拟器唯一可用的部分屏幕,即模拟器的左上角和其余部分只是一个黑屏.
My emulator screen is covering the only partial amount of screen available for emulator, i.e top left of the emulator and rest part is just a black screen.
请看我附上的图片.
我尝试过的事情:
1) 重启模拟器
2) 尝试不同的模拟器
2) trying different emulator
3) 改变像素,模拟器设备的密度,
3) changing pixels, density of emulator device,
4) 运行 -> 编辑配置..blah blah blah...
4) run -> edit configuration ..blah blah blah...
没有任何帮助!!
注意:
我的问题是不是模拟器的尺寸,而是有效的屏幕尺寸.
My issue is not emulator's size but effective screen size.
如果有人遇到此问题,请提供帮助:(
please help if somebody could have come across this issue :(
重要 我猜,这个问题与我使用的笔记本电脑、戴尔 Latitude、触摸屏(14 英寸 QHD 触摸屏)有关显示(2,560×1,440 分辨率).因为相同的模拟器在其他显示笔记本电脑上也能正常工作.
IMPORTANT I guess, this issue has something to do with the laptop I am using, DELL Latitude, touch screen (14-inch QHD touch display (2,560×1,440 resolution). Because the same emulator works properly in other display laptops.
我也遇到了同样的问题.我认为它是在我更新到 Android Studio 3.0 Beta 1 时开始发生的,但我不能 100% 确定这一点.
I was having the same problem too. I think it started happening when I updated to Android Studio 3.0 Beta 1, but I'm not 100% sure of that.
修复:无论如何,要解决这个问题,您可以在模拟器选项中使用 Software Graphics,而不是 Hardware.速度较慢,但至少可以工作.
FIX:
Anyway, to fix this, you can use Software Graphics in the emulator options, rather than Hardware. Slower, but at least it works.
这篇关于Android 模拟器屏幕仅占实际 android 模拟器屏幕的一小部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
使用 GPS 获取用户的当前位置Get user#39;s current location using GPS(使用 GPS 获取用户的当前位置)
requestLocationUpdate() 抛出的 IllegalArgumentExceptionIllegalArgumentException thrown by requestLocationUpdate()(requestLocationUpdate() 抛出的 IllegalArgumentException)
LocationManager 的 getLastKnownLocation 有多可靠,多久更How reliable is LocationManager#39;s getLastKnownLocation and how often is it updated?(LocationManager 的 getLastKnownLocation 有多可靠,多久更新
如何检测位置提供者?GPS 或网络提供商How to detect Location Provider ? GPS or Network Provider(如何检测位置提供者?GPS 或网络提供商)
在应用启动期间获取当前位置Get current location during app launch(在应用启动期间获取当前位置)
locationManager.getLastKnownLocation() 返回 nulllocationManager.getLastKnownLocation() return null(locationManager.getLastKnownLocation() 返回 null)