title: How to make a scrollable fragment based on the default android PageView
body: <p>I am using the default setup from the PageView setup in Android. I want to stay very simple. The default setup provides a TextView to put text in, and my text goes off the screen. Is it possible to make this scroll vertically?  </p>
  
  <pre><code>// edited to make the code appear in the code block
  public class DayFragment extends Fragment {
      /**
       * The fragment argument representing the section number for this
       * fragment.
       */
      public static final String ARG_SECTION_NUMBER = "section_number";
  
      public DayFragment() {
  
      }
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container,
              Bundle savedInstanceState) {
          // Create a new TextView and set its text to the fragment's section
          // number argument value.
          TextView tView = new TextView(getActivity());
          if(getArguments().getInt(ARG_SECTION_NUMBER) &gt; 1){
              tView.setText(getAllMeals(getArguments().getInt(
                      ARG_SECTION_NUMBER)-1));}
          else {
              getMeal();
              tView.setText(message);
          }
          return tView;
      }
  }
  </code></pre>