title: view scrolls down to tabhost when fragment opened
body: <p>When I open fragment with scrollview and tabhost inside the scrollview, it automatically scrolls down to the start of the tabhost hiding the top part of the scrollview. I've tried changing various things, nothing worked so far. Will keep trying, just throwing this here in hopes someone can help me. Here is the relevant parts of the code.</p>
  
  <p>FragmentProfile.java</p>
  
  <pre><code>public class FragmentProfile extends Fragment {
  private FragmentTabHost mTabHost;
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
      View view = inflater.inflate(R.layout.fragment_profile, container, false);
  
      mTabHost = (FragmentTabHost) view.findViewById(android.R.id.tabhost);
      mTabHost.setup(getActivity(), getChildFragmentManager(), R.id.realtabcontent);
  
      mTabHost.addTab(mTabHost.newTabSpec("tab1").setIndicator("", ContextCompat.getDrawable(getActivity(), R.drawable.ic_c_text)),
              FragmentProfileTab1.class, null);
  
      return view;
  }
  }
  </code></pre>
  
  <p>fragment_profile.xml</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="match_parent"
  android:layout_height="match_parent"
  android:id="@+id/scrollview"
  android:fillViewport="true"
  android:orientation="vertical"&gt;
  
  &lt;LinearLayout
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical"&gt;
  
      &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="70dp"
          android:background="#fff"
          android:weightSum="4"&gt;
  
  
              &lt;TextView
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_marginTop="5dp"
                  android:padding="2dp"
                  android:text="rolands"
                  android:textColor="#000"
                  android:textSize="18dp" /&gt;
  
      &lt;/LinearLayout&gt;
  
      &lt;android.support.v4.app.FragmentTabHost
          android:id="@android:id/tabhost"
          android:layout_width="match_parent"
          android:layout_height="match_parent"&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:orientation="vertical"&gt;
  
              &lt;TabWidget
                  android:id="@android:id/tabs"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_weight="0"
                  android:background="#6e0d16"
                  android:orientation="horizontal" /&gt;
  
              &lt;FrameLayout
                  android:id="@android:id/tabcontent"
                  android:layout_width="0dp"
                  android:layout_height="0dp"
                  android:layout_weight="0"
                  android:background="#fff" /&gt;
  
              &lt;FrameLayout
                  android:id="@+id/realtabcontent"
                  android:layout_width="match_parent"
                  android:layout_height="0dp"
                  android:layout_weight="1" /&gt;
  
          &lt;/LinearLayout&gt;
  
      &lt;/android.support.v4.app.FragmentTabHost&gt;
  
  &lt;/LinearLayout&gt;
  
  &lt;/ScrollView&gt;
  </code></pre>
  
  <p>FragmentProfileTab1.java</p>
  
  <pre><code>public class FragmentProfileTab1 extends Fragment {
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,  Bundle savedInstanceState) {
      View view = inflater.inflate(R.layout.fragment_profile_tab1, container, false);
  
  
      return view;
  }
  }
  </code></pre>
  
  <p>fragment_profile_tab1.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:background="#fff"
  android:orientation="vertical"
  tools:context=".DeviceFragment"&gt;
  
  &lt;LinearLayout
      android:layout_width="match_parent"
      android:layout_height="3000dp"
      android:layout_marginBottom="10dp"
      android:layout_marginLeft="10dp"
      android:layout_marginRight="10dp"
      android:layout_marginTop="10dp"
      android:background="#333"
      android:orientation="vertical"&gt;
  
  &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>The view atuomatically scrolls down to the start of the tabwidget. I'll keep editing as I try new things.</p>
  
  <p>I tried scrollView.scrollTo(0, 0) and scrollView.fullScroll(ScrollView.FOCUS_UP) without success.</p>