main.xml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. android:visibility="visible"
  19. app:theme="@style/fullToolbarStyle"/>
  20. </android.support.design.widget.AppBarLayout>
  21. <com.sheishuo.app.common.ui.viewpager.PagerSlidingTabStrip
  22. android:id="@+id/tabs"
  23. android:layout_width="match_parent"
  24. android:layout_height="@dimen/pager_sliding_tab_strip_height"
  25. android:layout_below="@id/app_bar_layout"
  26. android:background="@drawable/skin_global_bg"
  27. android:visibility="gone"/>
  28. <LinearLayout
  29. android:layout_width="match_parent"
  30. android:layout_height="match_parent"
  31. android:orientation="vertical"
  32. android:layout_below="@id/tabs">
  33. <android.support.v4.view.ViewPager
  34. android:id="@+id/main_tab_pager"
  35. android:layout_width="match_parent"
  36. android:layout_weight="9"
  37. android:layout_height="0dp"
  38. android:layout_below="@id/tabs"/>
  39. <com.sheishuo.app.common.views.BottomNavigationViewEx
  40. android:id="@+id/main_navigationbar"
  41. android:layout_width="wrap_content"
  42. android:layout_height="0dp"
  43. android:layout_weight="1"
  44. android:background="?android:attr/windowBackground"
  45. android:layout_gravity="bottom"
  46. app:menu="@menu/main_botton_navi_menu" />
  47. </LinearLayout>
  48. <com.netease.nim.uikit.common.ui.drop.DropCover
  49. android:id="@+id/unread_cover"
  50. android:layout_width="match_parent"
  51. android:layout_height="match_parent"
  52. android:visibility="invisible" />
  53. </RelativeLayout>