How to imitate the bottom menu bar and top menu bar of Wechat by Android
Editor to share with you how to achieve Android imitation Wechat bottom menu bar + top menu bar, I hope you will learn something after reading this article, let's discuss it!
Using ViewPage to do, each page corresponds to a XML, when the finger slides around the ViewPage, it shows a different page (actually xml) and changes the picture of the bottom menu button to darken or brighten at the same time, and if you click the bottom menu button, slide page around (actually xml) and change the brightness of the corresponding button.
Final effect: × × ×
I. layout
1. Top menu layout, named top_layout.xml, under the layout folder
Effect:
2. Bottom menu layout bottom_layout.xml
Effect: