由网友(社会水太深)分享简介:我使用的片段,制表符,我用listfragment的标签,我想,我使用下面code去项目clicklistner另一种活性的研究:I am using fragment with tabs, and i use listfragment in tab,i want to go another acitivity on...
我使用的片段,制表符,我用listfragment的标签,我想,我使用下面code去项目clicklistner另一种活性的研究:
I am using fragment with tabs, and i use listfragment in tab,i want to go another acitivity on item clicklistner, i am using below code:
Activity activity = getActivity();
Intent i = new Intent(activity, Motherboard.class);
startActivity(i);
这是要另外一个活动,但它没有显示tabbars。 我想如果有活动的呼叫,然后使用TabBar保持盈。 请帮我。
it is going to another activity but it not showing tabbars. I want if any activity call then the tabbar remain infront. Please help me out.
推荐答案
除非你想编写一个超类,实现了标签栏在所有的活动中,从这个超类继承,你可以试试与其他片段取代您的片段。节省很多的内存以及。
unless you do want to write a super-class that implements a tab-bar in all of your activities that inherit from this super-class, you can just try to replace your fragment with another fragment. Saves alot of memory aswell.
相关推荐
最新文章