MainActivity.java
package com.example.bar; |
activity_mian.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
底部菜单
bottom_navigation_menu.xml
<menu xmlns:android="http://schemas.android.com/apk/res/android" |
HomeFragment.java
package com.example.bar.fragment; |
fragment_home.xml
|
fragment_message、 fragment_settings类似