Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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"