用TabLayout 导design.jar包的引入

dependencies { ...... compile 'com.android.support:design:25.0.0' ......}

tabLayout和viewPager的布局文件的引入

<android.support.design.widget.TabLayout android: app:tabMode="scrollable" app:tabTextColor="@color/unselector_tab_text_color" app:tabSelectedTextColor="@color/selector_tab_text_color" app:tabIndicatorColor="@color/selector_tab_color" app:tabBackground="@color/colorPrimaryDark" android:layout_width="match_parent" android:layout_height="wrap_content"></android.support.design.widget.TabLayout><android.support.v4.view.ViewPager android: android:layout_width="match_parent" android:layout_height="match_parent"></android.support.v4.view.ViewPager>
You can leave a response, or trackback from your own site.

Leave a Reply

网站地图xml地图