How to make text scroll on android screen

0

I want to put a large text on a screen.

But I have a small problem when reading more, the text is simply cut and can not scroll to continue reading.

Does anyone tell me a method to do this?

Example 1:

Example2:

    
asked by anonymous 07.03.2017 / 18:50

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>
    
07.03.2017 / 18:55