开发者

android tabcontentfactory and view load events

I an using tabslayout.I choose tabcontentfactory to load views from xml layout. Like in an activity we have oncreate method which acts as onLoad so that i can fill datasource to various views.

But in tabcontentfactory approach,I can not do this sinc开发者_如何学Goe oncreate has already been fired which is mainly used for creating tabs.. Is there a better way to tell activity that inflated view has been attached to window and now you can use inflated view


It's sounds like you need to inflate views for your tab's content? using tab content factory? If so, check out this post from my blog that seems to do what you want.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜