Android 蜂巢使文本像素化

Android 蜂巢使文本像素化,android,android-layout,rendering,android-3.0-honeycomb,Android,Android Layout,Rendering,Android 3.0 Honeycomb,我的应用程序在Galaxy S上看起来不错,但当我在Galaxy Tab 10.1(Android 3.0)上运行它时,文本看起来是像素化/模糊化的: 用于同步按钮的XML如下所示: <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/synchronizeButton" android:background="@

我的应用程序在Galaxy S上看起来不错,但当我在Galaxy Tab 10.1(Android 3.0)上运行它时,文本看起来是像素化/模糊化的:

用于同步按钮的XML如下所示:

<Button
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:id="@+id/synchronizeButton"
    android:background="@drawable/button"
    android:text="Synchronize"
    android:textSize="20dp"
    android:textColor="@drawable/buttoncolors"
    android:layout_marginBottom="10dp"/>

我有没有做错什么,或者我需要做什么特殊的事情才能使我的应用程序与蜂巢兼容?

尝试将textSize=“20dp”更改为textSize=“20sp”。处理文本时,应始终使用“sp”(与比例无关的像素)。希望这能解决它


有关更多信息,请参阅本页:

您的应用程序是否在兼容模式下运行?如果是这样,这是意料之中的。您需要在清单中指出您支持大屏幕。

虽然这通常是合理的建议,但这不是问题所在。使用dip vs sp不会以这种方式影响文本呈现。谢谢,就是这样。不知怎的,我以为它会自动发生。。。现在必须重做我的布局:)