I have a TabListener in Android defined in this way:
public static class TabListener<T extends Fragment>
implements ActionBar.TabListener { ... }
An I have this source code:
Tab myTab = myActionBar.
newTab().
setText("Home").
setTabListener(new TabListener<MyFragment>(
this,
"Home",
MyFragment.class
));
...
Now I want to put this into a method:
addTab("Home", ???);
private void addTab(String text, ???) {
Tab myTab = myActionBar.
newTab().
setText(text).
setTabListener(new TabListener<???>(
this,
text,
???.class
));
...
}
What I have to fill in instead of ????