title: what is the best way to set the tab layout tabmode for tablets?
body: <p>I am using the TabLayout from Android Design support library. How can I use MODE_SCROLLABLE along with GRAVITY_FILL so that it looks the same across all devices and orientations?</p>
  
  <p>Currently if I use MODE_SCROLLABLE, it looks good on 7" tablet, but on 10" tablet, the tabs are aligned to the left. I want to be able to use GRAVITY_FILL for all sizes. </p>
  
  <p>This is my tablayout:</p>
  
  <pre><code>&lt;android.support.design.widget.TabLayout
      android:id="@+id/tab_layout"
      android:layout_width="match_parent"
      android:layout_height="72dp"            
  /&gt;
  </code></pre>
  
  <p>and I am setting the mode in code </p>
  
  <pre><code> tabLayout.setTabMode(TabLayout.MODE_SCROLLABLE);
  </code></pre>