title: Combination of Scrollview HorizontalScrollView and LinearLayout
body: <p>Most of the answer of these kind of question usually "android:fillViewPort = true", but I think it's different in my case</p>
  
  <p>my 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:fillViewport="true"
          android:scrollbars="vertical"
          &gt;
  
          &lt;HorizontalScrollView
              android:layout_width="match_parent"
              android:layout_height="match_parent"&gt;
  
              &lt;LinearLayout
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:orientation="vertical"&gt;
  
                  &lt;TextView
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:textAppearance="?android:attr/textAppearanceLarge"
                      android:text="PROFILE PAGE"
                      android:id="@+id/profile_title"
                      android:background="@android:color/holo_green_light"
                      android:gravity="center"
                      android:textColor="@color/abc_background_cache_hint_selector_material_light"
                      android:textStyle="bold"
                      android:typeface="sans" /&gt;
  
                  &lt;TextView
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:textAppearance="?android:attr/textAppearanceLarge"
                      android:text="ss"
                      android:id="@+id/profile_titlexx"
                      android:background="@android:color/holo_green_light"
                      android:gravity="center"
                      android:textColor="@color/abc_background_cache_hint_selector_material_light"
                      android:textStyle="bold"
                      android:typeface="sans" /&gt;
  
  &lt;TableLayout
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"&gt;
  
                  &lt;TableRow
                      android:id="@+id/tableRow1"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:padding="5dip" &gt;
  
                  &lt;TextView
                      android:id="@+id/textView1"
                      android:text="FB/G+   : "
                      android:textSize="20dp"
                      android:typeface="sans"
                      android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
                  &lt;TextView
                      android:id="@+id/textViewIDLogin"
                      android:text="Column 2"
                      android:textSize="20dp"
                      android:textAppearance="?android:attr/textAppearanceLarge"
                      android:typeface="sans"
                      android:textStyle="italic" /&gt;
  
                  &lt;/TableRow&gt;
                  &lt;TableRow
                      android:id="@+id/tableRow2"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:padding="5dip" &gt;
  
                      &lt;TextView
                          android:id="@+id/textView2"
                          android:text="Adress : "
                          android:textSize="20dp"
                          android:typeface="sans"
                          android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
                      &lt;TextView
                          android:id="@+id/textViewAddress"
                          android:text="street"
                          android:textSize="20dp"
                          android:textAppearance="?android:attr/textAppearanceLarge"
                          android:typeface="sans"   /&gt;
  
                  &lt;/TableRow&gt;
  
                  &lt;TableRow
                      android:id="@+id/tableRow3"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:padding="5dip" &gt;
  
                      &lt;TextView
                          android:id="@+id/textView3"
                          android:text="Contact : "
                          android:textSize="20dp"
                          android:typeface="sans"
                          android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
  
                      &lt;TextView
                          android:id="@+id/textViewContact"
                          android:text="221149089xx"
                          android:textAppearance="?android:attr/textAppearanceLarge"
                          android:textSize="20dp"
                          android:typeface="sans" /&gt;
  
                  &lt;/TableRow&gt;
  
              &lt;/TableLayout&gt;
  
              &lt;TextView
                  android:id="@+id/textViewDiamondPoint"
                  android:text="2150"
                  android:textAppearance="?android:attr/textAppearanceLarge"
                  android:textSize="20dp"
                  android:gravity="center_vertical|center|center_horizontal"
                  android:layout_gravity="center"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:typeface="sans"
                  android:padding="6dp"
                  android:background="@color/material_grey_100"
                  android:layout_marginTop="5dp" /&gt;
  
              &lt;TableLayout
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"&gt;
  
                  &lt;TableRow
                      android:id="@+id/tableRow4"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:padding="5dip" &gt;
  
                  &lt;TextView
                      android:id="@+id/textView4"
                      android:text="sum of treatment  : "
                      android:textSize="20dp"
                      android:typeface="sans"
                      android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
  
                      &lt;TextView
                          android:id="@+id/textViewJumlahPerawatan"
                          android:text="8 "
                          android:textAppearance="?android:attr/textAppearanceLarge"
                          android:textSize="20dp"
                          android:typeface="sans" /&gt;
  
                  &lt;/TableRow&gt;
  
                  &lt;TableRow
                      android:id="@+id/tableRow5"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:padding="5dip" &gt;
  
                      &lt;TextView
                          android:id="@+id/textView5"
                          android:text="Diamond : "
                          android:textSize="20dp"
                          android:typeface="sans"
                          android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
                      &lt;TextView
                          android:id="@+id/textViewdp"
                          android:text="500 "
                          android:textSize="20dp"
                          android:typeface="sans"
                          android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
  
                  &lt;/TableRow&gt;
  
                  &lt;TableRow
                      android:id="@+id/tableRow6"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:padding="5dip" &gt;
  
                      &lt;TextView
                          android:id="@+id/textView6"
                          android:text="Diamond sum         : "
                          android:textSize="20dp"
                          android:typeface="sans"
                          android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
                      &lt;TextView
                          android:id="@+id/textViewDiamondTotal"
                          android:text="2650 "
                          android:textSize="20dp"
                          android:typeface="sans"
                          android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
  
                  &lt;/TableRow&gt;
  
              &lt;/TableLayout&gt;
  
  
              &lt;TextView
                  android:id="@+id/textViewHistory"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center"
                  android:layout_marginTop="10dp"
                  android:background="@android:color/holo_orange_light"
                  android:gravity="center_vertical|center|center_horizontal"
                  android:padding="6dp"
                  android:text="last treatment"
                  android:textAppearance="?android:attr/textAppearanceLarge"
                  android:textColor="@color/common_google_signin_btn_text_dark_focused"
                  android:textSize="20dp"
                  android:textStyle="bold|italic"
                  android:typeface="sans" /&gt;
  
              &lt;/LinearLayout&gt;
  
          &lt;/HorizontalScrollView&gt;
  
      &lt;/ScrollView&gt;
  </code></pre>
  
  <p>i remember wasting my time trying to change values everywhere.. , but i still can't make the layout fill the width of the area.</p>
  
  <p>i just want my textview &amp; table layout fill all the width of the screen.</p>