Q:

sp not handling TextView text well

I have a text view:  
 <TextView
    android:id="@+id/attribution"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    android:text="@string/creative_commons"
    android:textColor="@color/white"
    android:textSize="32sp"
    android:textStyle="bold" >
</TextView>

On xhdpi it displays nicely, in one line:
Sounds used under the Creative Commons Attribution 3.0 license 
However, in hdpi, it looks like this:
Sounds used under the Creative Commons Attribution 3.0
license
I thought sp (as in 32sp) was supposed to handle screen density.
What do I need to do to correct this?
To address a couple of the suggestions:
Using dp makes no difference. This is not surprising since sp is dp + user font preferences
Using singleLine does indeed force it to a single line, which then runs off the screen.

A:

One way to fix this problem is to use Android resource qualifier mechanism. You can specify alternative layout for screens with different sizes. I assume 32sp is too big for devices with smaller display in your case. Here is how you fix it with Android resource qualifier:

Create a folder, res/layout-sw480dp
Keep the same layout file in res/layout folder
Copy the same layout file to the new folder res/layout-sw480dp, and modify the font size to be smaller (any size that looks good for phone)

Please note, "480" is chosen for screen with 480x800 mdpi. You can use "320" for handsets with 240x320 ldpi, 320x480 mdpi, or 480x800 hdpi.
Refer to http://developer.android.com/guide/practices/screens_support.html if you need information in detail.
Hope it helps!

