问题标签 [hdpi]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
android - 是三星galaxy nexus hdpi还是xhdpi
我将图像放在 drawable-xhdpi 文件夹中,galaxy nexus 没有拾取它。
Galaxy nexus 是 HDPI 还是 XHDPI?
android - When designing a UI interface for MDPI and HDPI ANdroid how do i beat the height issue?
Having designed an interface for HDPI in Fireworks (480x800) and now moving it over ready for an MDPI version (320x480) i've come across an issue
Proportionally, the HDPI screen is slightly taller than the MDPI screen.
I know my images will resize, but even still am losing some space height wise
Evyerthing fits on screen beautifully on HDPI version....but now its resized down to MDPI the smaller proportion in height means i'm more stuck for space.
How does one avoid this issue?
I asked the developer if the space between elements can be altered for the MDPI version (eg, on a screen with 8 text fields.... the space between the fields is shortened), he said it will work on percentage of the screen etc.....that's all ok...problem is that
A 480x800 screen -- if this is downsized (proportionally width and height) to a width of 320, the height ends up as 533, not 480.
Therefore i lose 53 pixels in height.
Have I got confused? How do i sort this out? Much thanks
android - 不同平板电脑的资源 android
我需要在我的应用程序中为两个三星平板电脑放置不同的资源。600x1024 (Samsung Galaxy Tab 7in) 800x1280 (Samsung Galaxy Tab 8.9 in) 所以我在 res 文件夹中创建了两个不同的文件夹drawable-port (for 7 in) 和drawable-large-port (for 8.9in) 但两个设备都选择了drawable-large-port文件夹中的资源。
当我为两个设备运行 getResources().getConfiguration().screenLayout 时,输出结果为 SCREENLAYOUT_SIZE_LARGE
那么文件夹名称应该是什么,以便两个设备从不同的文件夹中选择资源。
谢谢纳林德
android - android:在应用程序中只显示来自 ldpi 的图像
我有我的安卓应用程序。为了测试,我在文件夹 drawable-ldpi、drawable-mdpi 和 drawable-hdpi 中放置了 3 个不同的图像。他们有相同的名字。我读过:240x320 - ldpi,320x480 - mdpi,480x800 - hdpi。我在我的设备(HTC Sensation)上测试了我的应用程序,但只有来自 drawable-ldpi 的图像显示(而且质量很差,很模糊)HTC 的感觉屏幕是 540x960。那么为什么来自drawable-hdpi的图像没有显示而来自drawable-ldpi的图像显示?
android - MDPI 到 HDPI SystemUI.apk 移植
我正在尝试将 MDPI SystemUI.apk 移植到 HDPI。我已经反编译了文件,添加了这一行 -
到 AndroidManifest.xml,我也用所需的图像制作了 drawable-hdpi 文件夹,但它仍然从 drawable-mdpi 加载资源。有什么办法可以解决这个问题?
顺便说一句,Android 版本是 4.0.4。
android - Android 4 的位图宽度和高度
我在 drawable-hdpi 和 carema_btn.xml 布局文件中有 carema.png 和 carema_sel.png 图像。在 Android 2.2 和 2.3 设备上,一切正常,但在 android 4.0 中,按钮太大。这是我的布局:
为什么按钮在 Android 4.0 中显得太大?
android - Android 不访问平板电脑视图的 xhdpi 文件夹
我的 res 文件夹中有hdpi
和xhdpi
文件夹。但是,android 使用hdpi
xml 文件来1280 X 800
解析平板电脑。可能是因为我的 xml 文件访问了drawable-hdpi
文件夹中但不在drawable-xhdpi
文件夹中的资源吗?
android - 如何设计具有高分辨率但密度较低的屏幕的平板电脑用户界面?
我希望模拟器利用文件夹中存在的xhdpi
文件,同时它应该具有低密度。我的模拟器设置为1280 X 800
类似于motorola xoom
平板电脑的分辨率。现在,如果我保持密度149 ppi
,android 不会访问该xhdpi
文件夹。请帮忙。TIA。
android - hdpi 设备选择 mdpi 图像
我是安卓新手。试图弄清楚为什么会发生这种情况:我在一个hdpi drawable
没有被使用的文件夹中有一个图像。mdpi
它的大小是同名图像的 1.5 倍。我对每种分辨率都有不同的布局。有人可以帮我理解为什么mdpi
图像是唯一被使用的图像吗?我已经检查了关于这个和 android 开发人员文档的其他 stackoverflow 线程,但我找不到关于我做错了什么的答案。谢谢。
android - Android 可绘制 DPI
我在每个文件夹中都有一个带有 4 个版本的相同图像的 Android 应用程序:
drawable-ldpi/
drawable-mdpi/
drawable-hdpi/
drawable-xhdpi/
图像之间的唯一区别是大小,我只是将原始大图像按照公式缩小:
120dp lpdi, 1 dp=0.75 像素
160dp mpdi, 1 dp=1 像素
240dp hdpi, 1 dp=1.5 像素
320dp xhpdi, 1 dp=2 像素
问题是我打算拥有超过 100 个图像,所以为了减小文件大小,我不能将 xhdpi 版本放在 drawables/ 文件夹中,而不是每个图像有 4 个版本,那么 Android 可以根据需要缩放图像吗?这样做有什么缺点?它只是性能和文件大小之间的权衡吗?