activity_root.xml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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:id="@+id/activity_main"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:orientation="vertical">
  8. <android.support.v4.view.ViewPager
  9. android:id="@+id/viewpager"
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent"
  12. android:layout_above="@+id/bottom_navigation" />
  13. <android.support.design.widget.BottomNavigationView
  14. android:id="@+id/bottom_navigation"
  15. android:layout_width="match_parent"
  16. android:layout_height="wrap_content"
  17. android:layout_alignParentBottom="true"
  18. android:background="@color/tab_bg"
  19. app:itemTextColor="@color/icon_red">
  20. </android.support.design.widget.BottomNavigationView>
  21. <View
  22. android:id="@+id/view"
  23. android:layout_width="match_parent"
  24. android:layout_height="1dp"
  25. android:layout_above="@id/bottom_navigation"
  26. android:background="@drawable/bottom_shadow" />
  27. <!--app:itemIconTint="@drawable/bottom_navigation_selector"-->
  28. <!--app:itemTextColor="@drawable/bottom_navigation_selector"-->
  29. <!--<View-->
  30. <!--android:layout_width="match_parent"-->
  31. <!--android:layout_height="5dp"-->
  32. <!--android:layout_above="@id/bottom_navigation"-->
  33. <!--android:background="@drawable/bottom_shadow" />-->
  34. </RelativeLayout>