react-native-navigation的迁移库

tab_activity.xml 1.4KB

1234567891011121314151617181920212223242526272829303132
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. android:orientation="vertical"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. tools:context=".activities.TabActivity">
  9. <android.support.design.widget.AppBarLayout
  10. android:id="@+id/appbar"
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content"
  13. android:fitsSystemWindows="true">
  14. <android.support.v7.widget.Toolbar
  15. android:id="@+id/toolbar"
  16. android:layout_width="match_parent"
  17. android:layout_height="?attr/actionBarSize"
  18. app:layout_scrollFlags="scroll|enterAlways"/>
  19. <android.support.design.widget.TabLayout
  20. android:id="@+id/tabLayout"
  21. android:layout_width="match_parent"
  22. android:layout_height="?attr/actionBarSize"
  23. app:layout_scrollFlags="scroll|enterAlways"/>
  24. </android.support.design.widget.AppBarLayout>
  25. <android.support.v4.view.ViewPager
  26. android:id="@+id/viewPager"
  27. app:layout_behavior="@string/appbar_scrolling_view_behavior"
  28. android:layout_width="match_parent"
  29. android:layout_height="match_parent"/>
  30. </LinearLayout>