main.xml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:background="@drawable/skin_global_bg">
  7. <android.support.design.widget.AppBarLayout
  8. android:id="@+id/app_bar_layout"
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content"
  11. android:theme="@style/AppTheme.AppBarOverlay"
  12. app:elevation="0dp">
  13. <com.sheishuo.app.common.views.BaseToolbar
  14. android:id="@+id/toolbar"
  15. android:layout_width="match_parent"
  16. android:layout_height="?attr/actionBarSize"
  17. android:background="?attr/colorPrimary"
  18. app:titleTextAppearance="@style/Toolbar.TitleText"
  19. android:visibility="visible"
  20. style="@style/fullToolbarStyle"/>
  21. </android.support.design.widget.AppBarLayout>
  22. <com.sheishuo.app.common.ui.viewpager.PagerSlidingTabStrip
  23. android:id="@+id/tabs"
  24. android:layout_width="match_parent"
  25. android:layout_height="@dimen/pager_sliding_tab_strip_height"
  26. android:layout_below="@id/app_bar_layout"
  27. android:background="@drawable/skin_global_bg"
  28. android:visibility="gone"/>
  29. <LinearLayout
  30. android:layout_width="match_parent"
  31. android:layout_height="match_parent"
  32. android:orientation="vertical"
  33. android:layout_below="@id/tabs">
  34. <android.support.v4.view.ViewPager
  35. android:id="@+id/main_tab_pager"
  36. android:layout_width="match_parent"
  37. android:layout_weight="9"
  38. android:layout_height="0dp"
  39. android:layout_below="@id/tabs"/>
  40. <com.sheishuo.app.common.views.BottomNavigationViewEx
  41. android:id="@+id/main_navigationbar"
  42. android:layout_width="wrap_content"
  43. android:layout_height="0dp"
  44. android:layout_weight="1"
  45. android:background="?android:attr/windowBackground"
  46. android:layout_gravity="bottom"
  47. app:menu="@menu/main_botton_navi_menu" />
  48. </LinearLayout>
  49. <com.netease.nim.uikit.common.ui.drop.DropCover
  50. android:id="@+id/unread_cover"
  51. android:layout_width="match_parent"
  52. android:layout_height="match_parent"
  53. android:visibility="invisible" />
  54. </RelativeLayout>