react-native-navigation的迁移库

tab_activity.xml 1.7KB

12345678910111213141516171819202122232425262728293031323334353637
  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.CoordinatorLayout
  10. android:id="@+id/coordinator_layout"
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content">
  13. <android.support.design.widget.AppBarLayout
  14. android:id="@+id/appbar"
  15. android:layout_width="match_parent"
  16. android:layout_height="wrap_content"
  17. android:fitsSystemWindows="true">
  18. <android.support.v7.widget.Toolbar
  19. android:id="@+id/toolbar"
  20. android:layout_width="match_parent"
  21. android:layout_height="?attr/actionBarSize"
  22. app:layout_scrollFlags="scroll|enterAlways"/>
  23. <android.support.design.widget.TabLayout
  24. android:id="@+id/tabLayout"
  25. android:layout_width="match_parent"
  26. android:layout_height="?attr/actionBarSize"
  27. app:layout_scrollFlags="scroll|enterAlways"/>
  28. </android.support.design.widget.AppBarLayout>
  29. </android.support.design.widget.CoordinatorLayout>
  30. <android.support.v4.view.ViewPager
  31. android:id="@+id/viewPager"
  32. app:layout_behavior="@string/appbar_scrolling_view_behavior"
  33. android:layout_width="match_parent"
  34. android:layout_height="match_parent"/>
  35. </LinearLayout>