<android.support.design.widget.TabLayout
app:tabGravity="fill"
app:tabMode="fixed"
android:id="@+id/tablayout"
style="@style/MyTablayoutstyle"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_48"/>
上記のように、コードにTablayoutが設定されており、
2つのタブを均等に分割できないという結果が表示されます。次に、
app:tabMaxWidth="0dp"を追加します。
再度実行すると、2つのタブが
均等に分割されるため、2つのタブでスペースを均等に分割する場合は、
app:tabMaxWidth = "0dp"
app:tabGravity = "fill"
app:tabMode="fixed"を設定する必要があります。