这样设置 : app:tabGravity="fill" app:tabMode="fixed",一开始我把tabGravity设置为center,tabMode 设置为scrollable ,就给我显示到屏幕的左边,,,,
<android.support.design.widget.TabLayout android:id="@+id/tabLayout" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="bottom" android:layout_marginBottom="5dp" app:tabGravity="fill" app:tabIndicatorColor="@color/colorAccent" app:tabMode="fixed" app:tabSelectedTextColor="@color/yancy_red50" app:tabTextColor="@color/colorAccent" />
目前我还有个问题就是,上滑的时候,TabLayout 会被移出屏幕,,,还没找到设置方法,,,,