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 an Interactive Story App (Retired) Finishing the User Interface Creating the Story Layout

Glen Hayes
Glen Hayes
5,798 Points

I have no lineSpacingMultiplyer

Hi there,

When attempting to add the spacing using the XML for the text view, my version of android studio does not have the lineSpacingMultiplyer option?

Can anyone who has or is is using the latest version of android studio please point me in the direction I need to take for line spacing?

I see a baseLine attribute, but this doesnt seem to give me the option I am after.

Thanks in advance.

Glen Hayes
Glen Hayes
5,798 Points

Thanks for the comment Hao,

but I think you misunderstood my question. In android studio most of the methods and identifiers are or can be pre filled for you, so when I start off my line with the letter "l" or even "L", there are no options for the line spacing. I'm not attempting to hand write the option as this usually ends with an error if not using the pre fill method anyway. Make sense?

Cheers

2 Answers

Glen Hayes
Glen Hayes
5,798 Points

Its ok I have fixed it myself.

Thanks!

I think you may just have a typo: Multiplier is spelled with an 'i' instead of a 'y' which you are using:

android:lineSpacingMultiplier="1.2"