布局 - android 微信切换栏
ringa_lee
ringa_lee 2017-04-18 09:13:34
0
5
663

想请问一下怎么实现Android类似微信那种切换界面,只要求个思路

就是下面几个图标,然后点不同的图标仿佛只有图标栏上方改变了,图标栏一直保持不变

ringa_lee
ringa_lee

ringa_lee

reply all(5)
迷茫

The official document has an introduction, which can be easily implemented:
https://developer.android.goo...

You can also write it yourself

<LinearLayout>
  <TitleView></TitleView>
  <ContentView></ContentView>
  <TabView></TabView>
</LinearLayout>

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.

PHPzhong

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.

Ty80

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...

PHPzhong

You can read this article https://segmentfault.com/a/11...

小葫芦

A typical similar implementation is TabLayout + ViewPager

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template