You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

activity_main.xml 2.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:orientation="vertical">
  8. <com.hjq.widget.layout.NoScrollViewPager
  9. android:id="@+id/vp"
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent"
  12. android:paddingBottom="@dimen/dp_35"/>
  13. <RelativeLayout
  14. android:layout_width="match_parent"
  15. android:layout_height="wrap_content">
  16. <!--labeled 图标文字都显示-->
  17. <!--selected 选择-->
  18. <!--auto 自动的-->
  19. <!--unlabeled 文字不显示-->
  20. <com.google.android.material.bottomnavigation.BottomNavigationView
  21. android:id="@+id/bnve"
  22. android:layout_width="match_parent"
  23. android:layout_height="wrap_content"
  24. android:layout_alignParentBottom="true"
  25. android:background="@drawable/bg_main"
  26. app:itemBackground="@null"
  27. app:itemIconTint="@color/selector_item_primary_color"
  28. app:itemRippleColor="@color/common_button_disable_color"
  29. app:itemTextAppearanceActive="@style/selectText"
  30. app:itemTextAppearanceInactive="@style/unSelectText"
  31. app:itemTextColor="@color/selector_item_primary_color"
  32. app:labelVisibilityMode="labeled"
  33. app:menu="@menu/menu_main_button" />
  34. </RelativeLayout>
  35. <LinearLayout
  36. android:id="@+id/add"
  37. android:layout_width="@dimen/dp_35"
  38. android:layout_height="@dimen/dp_35"
  39. android:layout_gravity="bottom|center"
  40. android:layout_marginBottom="@dimen/dp_30"
  41. android:background="@drawable/selector_btn"
  42. android:elevation="@dimen/dp_5"
  43. android:gravity="center">
  44. <ImageView
  45. android:layout_width="@dimen/dp_25"
  46. android:layout_height="@dimen/dp_25"
  47. android:src="@mipmap/adds" />
  48. </LinearLayout>
  49. </FrameLayout>