Android的意见“的边界在某些设备上的问题边界、意见、设备、问题

2023-09-06 14:12:12 作者:此号作废

主题解决:请回答以下

一些用户已经报告了一些Android组件边框对齐问题,如警报弹出或editTexts。这是发生在三星Galaxy阿波罗(200x400)和HTC的触摸临(480×640)的设备。我不能复制,因为我不拥有这些设备,并在三星Galaxy S和模拟器一切看起来恰到好处。

Some users have been reporting border alignment issues on some android components such as the alert popup or the editTexts. This is happening on the Samsung Galaxy Apollo (200x400) and the HTC Pro Touch (480x640) devices. I cannot replicate that because i don't own those devices and in the Samsung Galaxy S and emulator everything looks just right.

我觉得现在的问题是设备的dpi或分辨率(因为背景的EditText是单.9.png让图像看起来应该OK);但是我不知道,如果在支持的屏幕的标签是解决方案。此外,应用程序是使用阿比3(V1.5)和支持屏还没有支持,也不是屏幕大小的资源预选赛。

I think that the problem is the dpi or resolution of the device (because the edittext background is a single .9.png so image should look ok); however I am not sure if the supports-screens tag is the solution. Also, application was developed using Api 3 (v1.5) and supports-screens was not yet supported, nor the screen-size resource qualifier.

样式用于警报和EDITTEXT是手机默认。难道问题是一些由用户应用到手机主题相关的?

The style used for the alerts and editText is the phone default. Could the problem be something related with the theme applied to the phone by the user?

在此先感谢!我告诉给我的一些图片显示的问题:

Thanks in advance!, I show some images given to me showing the problem:

推荐答案

那么它真的是分辨率/密度。我设法创建一个具有WQVGA密度(这需要> Android 1.6的),仿真器和复制错误。

Well it really was the resolution/density. I managed to create an emulator with the WQVGA density (which needed > Android 1.6) and replicate the error.

该解决方案是看到在支持传统的应用程序的Andr​​oid开发者网页的部分:的 http://developer.android.com/guide/practices/screens_support.html 。因此,需要在项目中API的更新版本,但它仍然保持了1.5版本的支持。

The solution is seen on the Supporting Legacy Applications section of the Android Developers webpage: http://developer.android.com/guide/practices/screens_support.html. So a newer version of the API is needed in the project but it still holds support for the 1.5 version.

感谢。