Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
404 views
in Technique[技术] by (71.8m points)

java - 如何在底部导航布局中添加TabLayout(How can I add tablayout inside bottom navigation layout)

I'm using Android Studio 3.5

(我正在使用Android Studio 3.5)

I have found some old project on stack overflow that no longer works:

(我在堆栈溢出中发现了一些旧项目,这些项目不再起作用:)

Multiple Tab fragments inside bottom navigation fragment

(底部导航片段内有多个Tab片段)

How to use tablayout with bottom navigation and viewpager?

(如何在底部导航和Viewpager中使用TabLayout?)

I really need this kind of layout, but I can't find any useful resources to help me build the project.

(我确实需要这种布局,但是我找不到任何有用的资源来帮助我构建项目。)

Please help me out this is my current state: https://github.com/ericbig66/Tabbed-layou-inside-bottom-navigation

(请帮助我,这是我目前的状态: https : //github.com/ericbig66/Tabbed-layou-inside-bottom-navigation)

这是我想要达到的结果

  ask by Eric translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

What's the matter?!

(怎么了?!)

When user clicks on bottom navigation, you open an fragment, and inside that fragment, you place a tab layout and view pager.

(当用户单击底部导航时,将打开一个片段,然后在该片段内放置选项卡布局并查看寻呼机。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...