Android Studio 模擬器框架尺寸比屏幕尺寸大得多 (Android Studio emulator frame size is much bigger then the screen size)


問題描述

Android Studio 模擬器框架尺寸比屏幕尺寸大得多 (Android Studio emulator frame size is much bigger then the screen size)

我嘗試在帶有 4K 顯示器(設置為 200% 縮放)的戴爾 XPS 15 上使用 Android Studio 模擬器。然而,有一個問題。模擬器屏幕的大小很好,但它周圍的框架是巨大的。下面是它的樣子:

enter image description here

我之前在這台機器上使用過Android Studio和它的模擬器,但那時更多一個月前,從那以後我重新安裝了一次 Windows。

我試圖改變模擬圖形設置,就像這個問題的第一個答案建議的那樣:Properties of 'emulator.exe' example

Click Apply and then OK. Restart IDE and all should work well! :)

方法 2:

I experienced the same problem with my Windows 10 computer. Here is a solution that works for me:

  1. Start Android Studio
  2. Switch your screen resolution to 1920 x 1080 at 100% scale by going to windows display settings enter image description here
  3. Once your screen resolution is at 1920 x 1080, start the android emulator
  4. While the emulator is running, switch your resolution back to 3840 x 2160 at 200% scale and the emulator should look right

You will have to do this every time you start the emulator. Once you have it running properly in 4k DO NOT close the emulator because you will have to repeat the above steps.

(by IntegerOverlordAviadMichael Cenzoprano)

參考文件

  1. Android Studio emulator frame size is much bigger then the screen size (CC BY‑SA 2.5/3.0/4.0)

#android-studio #android-emulator #scaling #Android






相關問題

Android Studio ADB 沒有響應 (Android Studio ADB not responding)

安卓工作室。錯誤:(19,0) (Android Studio. Error:(19,0))

如果編輯除 build.gradle 之外的其他 gradle 文件,Android Studio gradle 不會同步 (Android Studio gradle doesn't sync if edit other gradle files except build.gradle)

從Android應用程序中的較大圖片中提取和使用圖像縮略圖 (Extracting and using Image Thumbnail from larger picture in android app)

Android graphview x值低於以前的值 (Android graphview x values lower than previous values)

使用 android studio 在 webview 中顯示谷歌表單 (display google forms in webview using android studio)

默認工具欄和狀態欄未顯示在 android studio 3.3 中的 xml 預覽中 (Default toolbar and status bar not showing into xml preview in android studio 3.3)

我在 google play 上發布的應用程序在用戶下載時會顯示一個 android 文件。我怎樣才能解決這個問題? (My published app on google play shows an android file when users download it. How can i fix this?)

Android studio gradle home 路徑 (Android studio gradle home path)

將數組從 android 發佈到 Google 應用程序腳本 (POSTing a array from android to Google apps script)

為什麼我可以通過 android 模擬器運行一個簡單的計數器應用程序,但不能通過 ios 模擬器運行? (Why can I run a simple counter application through an android simulator but not through an ios simulator?)

RecycleView 第一次工作正常,下次什麼都沒有? (RecycleView works fine for the first time ,next time it shows nothing?)







留言討論