Skip to main content
added 124 characters in body
Source Link
Neoh
  • 16.2k
  • 14
  • 68
  • 78
  1. Use LinearLayout instead of RelativeLayout, set android:orientation="vertical"

  2. Put the textview inside your scrollview, like this:

    <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" ...

If you put all textviews inside a single scrollview, you will have one scrollbar;scrollbar(Note however that scrollview can only contain one child view, so you'll need to wrap those textviews under a linear layout); if you put one text view in each scrollview and stack those scrollviews vertically in linear layout, then you'll have separate scrollbar for each textview.

  1. Use LinearLayout instead of RelativeLayout, set android:orientation="vertical"

  2. Put the textview inside your scrollview, like this:

    <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" ...

If you put all textviews inside a single scrollview, you will have one scrollbar; if you put one text view in each scrollview and stack those scrollviews vertically in linear layout, then you'll have separate scrollbar for each textview.

  1. Use LinearLayout instead of RelativeLayout, set android:orientation="vertical"

  2. Put the textview inside your scrollview, like this:

    <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" ...

If you put all textviews inside a single scrollview, you will have one scrollbar(Note however that scrollview can only contain one child view, so you'll need to wrap those textviews under a linear layout); if you put one text view in each scrollview and stack those scrollviews vertically in linear layout, then you'll have separate scrollbar for each textview.

added 241 characters in body
Source Link
Neoh
  • 16.2k
  • 14
  • 68
  • 78
  1. Use LinearLayout instead of RelativeLayout, set android:orientation="vertical"

  2. Put the textview inside your scrollview, like this:

    <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" ...

If you put all textviews inside a single scrollview, you will have one scrollbar; if you put one text view in each scrollview and stack those scrollviews vertically in linear layout, then you'll have separate scrollbar for each textview.

  1. Use LinearLayout instead of RelativeLayout, set android:orientation="vertical"

  2. Put the textview inside your scrollview, like this:

    <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" ...

  1. Use LinearLayout instead of RelativeLayout, set android:orientation="vertical"

  2. Put the textview inside your scrollview, like this:

    <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" ...

If you put all textviews inside a single scrollview, you will have one scrollbar; if you put one text view in each scrollview and stack those scrollviews vertically in linear layout, then you'll have separate scrollbar for each textview.

Source Link
Neoh
  • 16.2k
  • 14
  • 68
  • 78

  1. Use LinearLayout instead of RelativeLayout, set android:orientation="vertical"

  2. Put the textview inside your scrollview, like this:

    <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" ...