When switching between tabs, just modify the Title.
It turns out that Guo Lin has shared that you can refer to the actual application of Android ActionBar and the design of the high imitation WeChat main interface.
Search the bottom navigation bar and find various implementation methods online. Or you can use Bottom Navigation that comes with Android. A similar effect will occur.
You can see that the UI of WeChat is divided into two layers as a whole. The upper layer only has the title (attached to the top), and the lower layer is a linear layout with a com.tencent.mm.ui.mogic.WxViewPager也就是微信自定义的Viewpager and a bottom indicator. The layout is very simple, in other words , WeChat UI has always been simple to crude...
The official document has an introduction, which can be easily implemented:
https://developer.android.goo...
You can also write it yourself
When switching between tabs, just modify the Title.
It turns out that Guo Lin has shared that you can refer to the actual application of Android ActionBar and the design of the high imitation WeChat main interface.
Search the bottom navigation bar and find various implementation methods online. Or you can use Bottom Navigation that comes with Android. A similar effect will occur.
I just analyzed the UI of WeChat:
You can see that the UI of WeChat is divided into two layers as a whole. The upper layer only has the title (attached to the top), and the lower layer is a linear layout with a
com.tencent.mm.ui.mogic.WxViewPager
也就是微信自定义的Viewpager
and a bottom indicator. The layout is very simple, in other words , WeChat UI has always been simple to crude...You can read this article https://segmentfault.com/a/11...
A typical similar implementation is TabLayout + ViewPager