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) The Model-View-Controller Pattern Defining the Data Model

Eleni Minadaki
Eleni Minadaki
3,687 Points

How can i put larger text of story?

Hi everyone, i would like to ask how can i put larger text in the interactive story app? is there a way where the text scrolling for to see the user? Thanks for any suggestion!

3 Answers

In <TextView in the xml android:textSize="20sp". Adjust the number until you get the size you want.

Eleni Minadaki
Eleni Minadaki
3,687 Points

Hello.Thank you very much for your reply but the question was : " i would like to ask how can i put larger text in the interactive story app? is there a way where the text scrolling for to see the user?" the lesson of interactive story up doesn't support a very large text. Maybe you haven't see that yet.

You can put as much larger text you want. In case it doesn't fit just simply put ScrollView in layout file like the one below:

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:fillViewport="true">

<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent" > <TextView>

<---Place anything here--->

</TextView>

</RelativeLayout> </ScrollView>