Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

代码中怎么样动态添加TAB #4

Open
linsea opened this issue Nov 10, 2015 · 1 comment
Open

代码中怎么样动态添加TAB #4

linsea opened this issue Nov 10, 2015 · 1 comment

Comments

@linsea
Copy link

linsea commented Nov 10, 2015

可否提供一个代码中添加TAB的实例,看了你的源码, 没有看到怎么做的.
TabViewFactory接口定义得似乎有问题, 客户端怎么实现这个接口没有说清楚.
建议使用客户端提供的ViewPager或Adapter得到TAB个数和标题来生成TAB比较合适,而不是硬编码在XML的布局文件中.

@panpf panpf closed this as completed Nov 17, 2015
@panpf
Copy link
Owner

panpf commented Nov 17, 2015

你只需在addTabs方法中往parent中添加View即可

@panpf panpf reopened this Nov 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants