Mobile Internet development course

Android Studio wechat page submission

As mentioned, the goal of this project is to complete the compilation of a wechat page

The following requirements are required:
1\. Page with title "wechat" 2\. Page with middle display box 3\. The page has the bottom selection box, and has the selection event 4\. The bottom of the page selection box when making changes, we need the middle display box page synchronization change 5\. The layout of the page is clearCopy the code
Project Completion Presentation:

For the display of front-end pages:

For the display of the page, I used the FrameLayout component on the home page as the main display area in the middle, then included at the top and bottom. Nothing more to say about the layout of the page, the only thing to pay attention to is the layout of the page, height adjustment, right

Control over the event function:

In this experiment, there are not many functional events that we need to control. We only need to complete them. After clicking at the bottom, the fragment in the middle can rotate correspondingly.

  1. Listen for our clicks on the bottom control
  2. Pass bottom click events listened to to the fragment’s event control accordingly

Attached is the source code of the project (Gitee code cloud warehouse) :

Gitee.com/hubei-unive…