Fixed
Status Update
Comments
mi...@leonhardllc.com <mi...@leonhardllc.com> #2
Correction: The 200dp widget is actually 150px wide, so the virtual device screen is ldpi. The 'ldpi' listed on the devices list is correct. The 'mdpi' listed in the device edit screen is incorrect. Attaching screenshot.
vi...@google.com <vi...@google.com> #3
Thank you for your feedback. Team may reach out for more feedback in reproducing or triaging this issue.
Description
AI-191.8026.42.35.5900203, JRE 1.8.0_202-release-1483-b49-5587405x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.15, screens 1440x900; Retina
AS: 3.5.1; Android Gradle Plugin: (plugin information not found); Gradle: (gradle version information not found); NDK: from local.properties: (not specified), latest from SDK: (not found); LLDB: pinned revision 3.1 not found, latest from SDK: (package not found); CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: (not found)
Steps to Reproduce Bug:
1. Open Android Studio.
2. Click the menu Tools / AVD Manager.
3. Click the button "+ Create Virtual Device..."
4. Select the last device in the list: 2.7" QVGA. Click Next.
5. Click the "x86 Images" tab.
6. Select Jelly Bean, 16, x86, Android 4.1. Click Next. Click Finish.
7. The newly created virtual device is selected. Look at the text in the Resolution column.
Expected Behavior:
The resolution should be listed as "240 x 320: mdpi". On mdpi screens, 1px = 1dp. I confirmed this by taking a screenshot of our app and measuring the width of a 200dp-wide widget and confirming that it is 200px wide. The emulated screen is definitely mdpi.
Observed Behavior:
The resolution is listed as "240 x 320: ldpi".
This is important because we need to know the size of the screen in DP to be able to design the interface correctly. Assuming the screen is ldpi will lead to screen widgets that are 33% too big for the screen. Since the whole point of designing and testing on small screens is to make the widgets fit and look good, an error of 33% is unacceptable.