Android 模拟器不在视野范围内,我该如何移动它?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11572485/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
The Android emulator is out of view, how can I move it?
提问by Hugo Zapata
I used an additional display with my laptop and moved the Android emulator there. It seems to remember the location even if the display is not connected anymore.
我在笔记本电脑上使用了一个额外的显示器,并将 Android 模拟器移到了那里。即使显示器不再连接,它似乎也能记住位置。
Is there any way to reset the position of the window so it becomes visible again?
有没有办法重置窗口的位置,使其再次可见?
采纳答案by lory105
more exactly from your home directory
更准确地来自您的主目录
(on Linux: $HOME/
on Windows: C:\Users\<your user>
)
go into
(在 Linux 上:$HOME/
在 Windows 上C:\Users\<your user>
:)进入
.android/avd/<image name>
open the file emulator-user.iniand set window.x and window.y to 0.
打开文件emulator-user.ini并将 window.x 和 window.y 设置为 0。
window.x = 0
window.y = 0
If you don't see the hidden dir .android
on Linux press Ctrl+H
and from Windows select View>Options>View (Tab) and select "Show hidden files"
如果您.android
在 Linux 上没有看到隐藏目录,请按Ctrl+H
Windows 选择查看>选项>查看(选项卡)并选择“显示隐藏文件”
EDIT:
编辑:
If the file emulator-user.ini doesn't exist, close the emulator window, then check the avd directory again. This is because emulator-user.ini is generated after the first run of the emulator.
如果文件 emulator-user.ini 不存在,请关闭模拟器窗口,然后再次检查 avd 目录。这是因为 emulator-user.ini 是在第一次运行模拟器后生成的。
回答by Daxxy
You can use this Method for moving any window that is off the screen in a windows environment.
您可以使用此方法移动 Windows 环境中屏幕外的任何窗口。
- First Select the window either by Alt-Tab or Click clicking it
- Press Alt & Space keys together
- Press "M" or select it with the mouse Use your arrow keys to move the Window
- Press Enter to exit
- 首先通过 Alt-Tab 选择窗口或单击单击它
- 同时按下 Alt 和 Space 键
- 按“M”或用鼠标选择它使用箭头键移动窗口
- 按 Enter 退出
This is far easier than editing any files.
这比编辑任何文件要容易得多。
回答by Hugo Zapata
It was easy. I opened the avd location and the file emulator-user.ini contains the location and can be changed.
很容易。我打开了 avd 位置,文件 emulator-user.ini 包含该位置并且可以更改。
Maybe someone else needs it.
也许别人需要它。
回答by Neoheurist
Alt+Space then use the arrow keys
Alt+Space 然后使用箭头键
回答by IntelliJ Amiya
At First Go-to your AVD MANAGER SECTION& Click On It ,Then
首先转到您的AVD 管理器部分并单击它,然后
Right Click on Your Virtual Mobile & See "Show On Disk "& Click on it
Then you see Your AVD Drive & see
emulator-user.ini
& Thenopen
it .set value
window.x = 0 window.y = 0
Close & Restart Your Project & AVD Also.
右键单击您的虚拟手机并查看“在磁盘上显示”并单击它
然后你会看到你的 AVD 驱动器
emulator-user.ini
,然后看到open
它。设定值
window.x = 0 window.y = 0
关闭并重新启动您的项目和 AVD。
回答by Gery
Alt + Space works just fine. The emulator-user.ini answer did not work for me.
Alt + Space 工作得很好。emulator-user.ini 答案对我不起作用。
Thanks.
谢谢。
回答by Emmanuel Deiparine
For windows 10 users, just press
对于 Windows 10 用户,只需按
ctrl + alt + up_arrow_key
Side note:
边注:
ctrl + alt + left_arrow_key
ctrl + alt + right_arrow_key
ctrl + alt + down_arrow_key
this will rotate your screen
这将旋转您的屏幕
回答by Harin Kaklotar
For Windows operating system Control panel -> Programs -> Turn window features on or off -> check Telnet client and Telnet server option -> ok
对于 Windows 操作系统控制面板 -> 程序 -> 打开或关闭窗口功能 -> 检查 Telnet 客户端和 Telnet 服务器选项 -> 确定
now open your cmd as administrator come to your 'c' drive path using cd\
现在以管理员身份打开您的 cmd 使用 cd\ 进入您的“c”驱动器路径
C:\Users\Harin>cd\
C:\telnet localhost 5554
C:\Users\Harin>cd\
C:\telnet 本地主机 5554
now it's open new window write
现在它打开新窗口写
window scale 0.3
窗口比例 0.3
here 5554 is your emulator screen number and 0.3 is your screen size, you can change as you want for example 0.2 or 0.4 etc
这里 5554 是您的模拟器屏幕编号,0.3 是您的屏幕尺寸,您可以根据需要进行更改,例如 0.2 或 0.4 等
回答by mdehghani
if you see the toolbar next to it but don't see the emulator, click on the zoom button and it will appear.
如果您看到旁边的工具栏但没有看到模拟器,请单击缩放按钮,它会出现。
回答by josue.0
In my case none of the answers related to move the emulator window worked.
在我的情况下,与移动模拟器窗口相关的答案都不起作用。
To make it work with "scale and layout" NOT in 100% (as I had in my case) I had to do this
为了使其与“规模和布局”工作不需要在100%(正如我在我的情况下有)我不得不做这
Also did this (not sure if necessary, but in case somebody needs it):
也这样做了(不确定是否有必要,但以防万一有人需要它):
I had to right click on desktop, then "display properties", then "Advanced scaling settings", then set the scaling to 100% (I had it in 250%), then open the emulator and resize it as small as possible and put it in the top left of my screen. Then "Turn off custom scaling and sign out", then I could see and resize my emulator window.
我必须右键单击桌面,然后“显示属性”,然后“高级缩放设置”,然后将缩放比例设置为 100%(我将其设置为 250%),然后打开模拟器并将其调整为尽可能小并放入它在我屏幕的左上角。然后“关闭自定义缩放并退出”,然后我可以看到并调整我的模拟器窗口的大小。