如何使主页选项卡菜单就像我的形象 [英] how to make home tab menu like my image
本文介绍了如何使主页选项卡菜单就像我的形象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想让它看起来像下面的图片标签动态。
如果preSS客栈quiz1然后开始竞猜活动。
然后当我preSS测验,结果再启动该活动。
解决方案
- 在布局创建水平列表视图按住顶部栏和下方的创建一个框架布局,并使用片段的观点来代替。
- 使用片段活动来处理这种布局
- 和动态添加项目到列表视图,并设置标签(东西)提它具有任务点击时要执行。
- ,并基于该框架布局标签打开各自的片段。
I want to make tab dynamic which will look like below image.
If press inn quiz1 then start quiz activity. and then when I press Quiz-Results then start that activity.
解决方案
- Within a layout create a horizontal list view to hold the top bar and below that create one Frame layout and use fragments to replace in that views.
- Use fragment activity to handle this layout
- and dynamically add items to that list view and set Tag(something) to mention which task it has to be performed when clicked.
- and based on the tag open respective fragment in that frame layout.
这篇关于如何使主页选项卡菜单就像我的形象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文