Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to imitate the bottom menu bar and top menu bar of Wechat by Android

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

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:

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report