android - Dynamically adding multiple fragments to a single layout
问题描述
It is possible to add multiple fragments dynamically, i have an requirements of multiple pages but that is not fixed it may be 4 or 6, so it is possible to add fragment dynamically, if yes then how to add.
解决方案
您可以使用 ViewPager 和 Tabs 之类的浏览器
推荐阅读
- mysql - 我有 2 个表。T1-主表,T2-历史数据。想要对 T1 中所有在 T2 中有多个名称条目的记录的名称列进行 EXISTS 查询
- java - 将 JUnit 5 @BeforeEach 中的参数传递给单个测试
- php - 为什么 Laravel 邮件不能在实时服务器上运行?
- c# - 不等待异步调用仍然是异步的,对吗?
- ruby-on-rails - Rails (Active Record) - 返回所有字段的列表
- firebase - 为 Firebase 函数中文档的特定参数激活函数 (OnUpdate)
- arm - Fill erased memory with something like assert(false) on ARM Cortex-M4
- mysql - Trying to calculate the conversion rate of customers who just sign a virtual greeting card to eventually buying a card
- javascript - 如何使用 vanilla Node.js 运行 500 个请求,20 个并行
- sql - 生成分层路径