How to make text scroll on android screen

Asked

Viewed 1,844 times

0

I’m wanting to put on a screen a large text.

However I have a small problem when it comes to reading more, the text is simply cut and there is no way to scroll to continue reading.

Someone tells me how to do it?

Example 1:

inserir a descrição da imagem aqui

Example 2:

inserir a descrição da imagem aqui

  • Check this answer with the solution: http://answall.com/a/147688/35406

1 answer

1


If I get it right, just put your textview inside a Scrollview.

<ScrollView
  android:layout_width="match_parent"
  android:layout_height="match_parent">
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical" >   

          <TextView
              android:id="@+id/tv_long"
              android:layout_width="wrap_content"
              android:layout_height="match_parent"
              android:text="@string/really_long_string" >
          </TextView>
   </LinearLayout>
</ScrollView>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.