Honeycomb makes texts pixelized
My app looks fine on my Galaxy S, but when I run it on a Galaxy Tab 10.1 (Android 3.0), the texts look pixelized/smeared:
The XML used for the Synchronize button follows:
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/synchronizeButton"
andr开发者_如何学JAVAoid:background="@drawable/button"
android:text="Synchronize"
android:textSize="20dp"
android:textColor="@drawable/buttoncolors"
android:layout_marginBottom="10dp"/>
Is there something wrong I am doing, or is there something special I need to do to make my apps Honeycomb-compatible?
Is your application running in compatibility mode? If so, this is expected. You need to indicate in your manifest that you support large screens.
Try changing textSize="20dp" to textSize="20sp". When dealing with text you should always use "sp" (scale-independent pixel). Hopefully this fixes it.
see this page for more info: http://developer.android.com/guide/practices/screens_support.html
精彩评论