Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Simple Android App with Java Creating the Screen Layout Adding a TextView

Hi, I get a different layout between design & blueprint view when I wrote "Ants stretch.."and set it to 24sp, why?

Hi, I get a different layout between design & blueprint view when I wrote "Ants stretch.."and set it to 24sp.

When I set it to 24sp, the blueprint text size become way bigger (as if it was set to 70sp) but not on the design view. Is this a bug that I should ignore? any idea how to fix this?

3 Answers

Sean M
Sean M
7,344 Points

The same thing has happened to me. I don't think it is an error because when I run my program on Android studio, the text is formatted to the screen at 24sp.

What program is this

Can i have a snippet of your XML layout

I have the same problem, here is my text snippet of the XML

        android:id="@+id/textView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentStart="true"
        android:layout_centerVertical="true"
        android:text="Ants stretch when they wake up in the morning."
        android:textSize="24sp" />