! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! www.oxcoder.com!
!
ViewPager
TabLayout
0
Android TabHost
ActiontBar 2 API!22 deprecated !
!! Activity TabH ostAPI!13 Deprecated!
!! ! ActionBar!Navigation!Mode API!21 deprecated!
! ! TabLayout ViewPager !
TabLayout
ViewPager Tab !
! TabLayout setupW ithV iewPa ger(ViewP ager) TabLayout
ViewPager Tab ViewPager 2
! PagerAdapter CharSequence!getPageTitle(int!position) ViewPager
item Tab Tab
TabLayout
android.support.design.widget !
xmlns:android="http://schemas.android.com/apk/res/and
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
评论0