title: ScrollView inside a fragment with TabLayout is not scrolling, why?
body: <p>im a noob in android development and i was in a introduction course of Cryptography so i decide combine both and make this app. I use a TabLayout for making a tab for each cipher method (RSA and XOR), and one tab for Instructions and Help. Everything was working perfectly until i add a scrollView in the Help Tab with the instructions. The scrollView is not scrolling, and i don´t know why, i've been searching on web for help and doing every posible solution like change the width an height ScrollView properties, i'm stuck, can you help me please?
  <a href="http://imgur.com/a/mEA2b" rel="noreferrer">Screenshots</a></p>
  
  <p><strong>-----EDIT 3/02/16-----</strong></p>
  
  <p>** My main_activity.xml **</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.design.widget.CoordinatorLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:fitsSystemWindows="true"
      tools:context="com.example.usuario.chatparritos.MainActivity"&gt;
  
      &lt;android.support.design.widget.AppBarLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"&gt;
  
  
          &lt;android.support.v7.widget.Toolbar
              android:id="@+id/toolbar"
              android:layout_width="match_parent"
              android:layout_height="?attr/actionBarSize"
              android:background="?attr/colorPrimary"
              android:elevation="4dp"
              android:theme="@style/ThemeOverlay.AppCompat.ActionBar"
              app:popupTheme="@style/ThemeOverlay.AppCompat.Light"/&gt;
  
          &lt;android.support.design.widget.TabLayout
              android:id="@+id/tab_layout"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_below="@+id/toolbar"
              android:background="?attr/colorPrimary"
              android:elevation="6dp"
              android:minHeight="?attr/actionBarSize"
              app:tabMode="fixed"
              android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"/&gt;
  
          &lt;android.support.v4.view.ViewPager xmlns:android="http://schemas.android.com/apk/res/android"
              xmlns:tools="http://schemas.android.com/tools"
              android:id="@+id/pager"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:layout_below="@+id/toolbar"
              tools:context="net.voidynullness.android.tabitytabs.TabLayoutActivity"
                                             android:background="#ffffff"/&gt;
  
      &lt;/android.support.design.widget.AppBarLayout&gt;
  
  
      &lt;android.support.design.widget.FloatingActionButton
          android:id="@+id/fab"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="bottom|end"
          android:layout_margin="@dimen/fab_margin"
          android:src="@android:drawable/ic_dialog_info"/&gt;
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p><strong>-----//EDIT 3/02/16-----</strong></p>
  
  <p><strong>Here is my tab_fragment_3.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:fillViewport="true"
              android:focusableInTouchMode="true"
              android:focusable="true"
              android:scrollbars="vertical"
              android:id="@id/scrollView"&gt;
  
      &lt;LinearLayout android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="vertical"
                    android:background="#FFFFFF"
                    android:layout_marginLeft="20dp"
                    android:layout_marginRight="20dp"
                    android:gravity="left"&gt;
  
              &lt;TextView
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="@string/title_chatparritos"
                  android:textSize="20dp"
                  android:layout_marginTop="15dp"
                  android:textAppearance="@style/TextAppearance.AppCompat.Title"/&gt;
  
              &lt;TextView
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:text="@string/body_chatparritos"
                  android:textAppearance="@style/TextAppearance.AppCompat.Body1"
                  android:textSize="15dp"
                  android:layout_marginTop="9dp"
                  android:background="@drawable/blue_cornered_textview"/&gt;
  
              &lt;TextView
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="@string/link_khan"
                  android:layout_marginTop="-19dp"
                  android:textAppearance="@style/TextAppearance.Design.Hint"
                  android:textSize="15dp"
                  android:linksClickable="true"
                  android:id="@+id/linkAcademy"
                  android:layout_gravity="center_horizontal"/&gt;
  
              &lt;TextView
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="@string/title_xor"
                  android:textSize="20dp"
                  android:layout_marginTop="25dp"
                  android:textAppearance="@style/TextAppearance.AppCompat.Title"/&gt;
  
              &lt;TextView
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:text="@string/body_xor"
                  android:textAppearance="@style/TextAppearance.AppCompat.Body1"
                  android:textSize="15dp"
                  android:layout_marginTop="9dp"
                  android:background="@drawable/blue_cornered_textview"/&gt;
  
              &lt;TextView
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:text="@string/instructions_xor"
                  android:textAppearance="@style/TextAppearance.AppCompat.Body1"
                  android:textSize="15dp"
                  android:layout_marginTop="15dp"
                  android:background="@drawable/yellow_cornered_textview"
                  android:textStyle="bold"/&gt;
  
              &lt;TextView
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="@string/title_rsa"
                  android:textSize="20dp"
                  android:layout_marginTop="25dp"
                  android:textAppearance="@style/TextAppearance.AppCompat.Title"/&gt;
  
              &lt;TextView
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:text="@string/body_rsa"
                  android:textAppearance="@style/TextAppearance.AppCompat.Body1"
                  android:textSize="15dp"
                  android:layout_marginTop="9dp"
                  android:background="@drawable/blue_cornered_textview"/&gt;
              &lt;TextView
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="@string/link_rsa"
                  android:layout_marginTop="-19dp"
                  android:textAppearance="@style/TextAppearance.Design.Hint"
                  android:textSize="15dp"
                  android:linksClickable="true"
                  android:id="@+id/linkRSA"
                  android:layout_gravity="center_horizontal"/&gt;
  
              &lt;TextView
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:text="@string/instructions_rsa"
                  android:textAppearance="@style/TextAppearance.AppCompat.Body1"
                  android:textSize="15dp"
                  android:layout_marginTop="15dp"
                  android:background="@drawable/yellow_cornered_textview"
                  android:textStyle="bold"/&gt;
  
              &lt;TextView
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="@string/title_numeros"
                  android:textSize="20dp"
                  android:layout_marginTop="25dp"
                  android:textAppearance="@style/TextAppearance.AppCompat.Title"/&gt;
  
              &lt;TextView
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:text="@string/body_numeros"
                  android:textAppearance="@style/TextAppearance.AppCompat.Body1"
                  android:textSize="15dp"
                  android:layout_marginTop="9dp"
                  android:background="@drawable/blue_cornered_textview"/&gt;
  
              &lt;TextView
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:text="@string/nota"
                  android:textAppearance="@style/TextAppearance.AppCompat.Body1"
                  android:textSize="15dp"
                  android:layout_marginTop="30dp"
                  android:layout_marginBottom="30dp"
                  android:background="@drawable/red_cornered_textview"/&gt;
  
      &lt;/LinearLayout&gt;
  &lt;/ScrollView&gt;
  </code></pre>
  
  <p><strong>Here is my TabFragment3.java</strong></p>
  
  <pre><code>public class TabFragment3 extends Fragment {
      TextView linkAcademy;
      TextView linkRsa;
  
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
          View view = inflater.inflate(R.layout.tab_fragment_3, container, false);
  
  
          linkAcademy = (TextView) view.findViewById(R.id.linkAcademy);
          linkAcademy.setMovementMethod(LinkMovementMethod.getInstance());
  
          linkRsa = (TextView) view.findViewById(R.id.linkRSA);
          linkRsa.setMovementMethod(LinkMovementMethod.getInstance());
  
  
          return view;
      }
  </code></pre>
  
  <p><strong>My PagerAdapter.java</strong></p>
  
  <pre><code>public class PagerAdapter extends FragmentStatePagerAdapter {
  
      int mNumOfTabs;
  
      public PagerAdapter(FragmentManager fm, int numOfTabs) {
          super(fm);
          this.mNumOfTabs = numOfTabs;
      }
  
      @Override
      public Fragment getItem(int position) {
  
          switch (position) {
              case 0:
                  TabFragment1 tab1 = new TabFragment1();
                  return tab1;
              case 1:
                  TabFragment2 tab2 = new TabFragment2();
                  return tab2;
              case 2:
                  TabFragment3 tab3 = new TabFragment3();
                  return tab3;
              default:
                  return null;
          }
      }
  
      @Override
      public int getCount() {
          return mNumOfTabs;
      }
  </code></pre>
  
  <p><strong>And my MainActivity.java</strong> </p>
  
  <pre><code>public class MainActivity extends AppCompatActivity {
  
  
  
  
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
          setSupportActionBar(toolbar);
  
  
  
          TabLayout tabLayout = (TabLayout) findViewById(R.id.tab_layout);
          tabLayout.addTab(tabLayout.newTab().setText("XOR"));
          tabLayout.addTab(tabLayout.newTab().setText("RSA"));
          tabLayout.addTab(tabLayout.newTab().setText(R.string.tab_help));
          tabLayout.setTabGravity(TabLayout.GRAVITY_FILL);
  
          final ViewPager viewPager = (ViewPager) findViewById(R.id.pager);
          final PagerAdapter adapter = new PagerAdapter
                  (getSupportFragmentManager(), tabLayout.getTabCount());
          viewPager.setAdapter(adapter);
          viewPager.addOnPageChangeListener(new TabLayout.TabLayoutOnPageChangeListener(tabLayout));
          tabLayout.setOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {
                                                 @Override
                                                 public void onTabSelected(TabLayout.Tab tab) {
                                                     viewPager.setCurrentItem(tab.getPosition());
                                                 }
  
                                                 @Override
                                                 public void onTabUnselected(TabLayout.Tab tab) {
  
                                                 }
  
                                                 @Override
                                                 public void onTabReselected(TabLayout.Tab tab) {
  
                                                 }
                                             });
  
  
          FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
          fab.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View view) {
                  Snackbar.make(view, R.string.fab_info, Snackbar.LENGTH_LONG)
                          .setAction("Action", null).show();
              }
          });
  </code></pre>