main.xml 2.3 KB

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