I've been researching in ways to start a dialog instead of a whole other activity when a tab is press开发者_StackOverflow中文版ed.
The functionality will be very similar to the "+" tab in the GroupMe App. http://images.brighthub.com/e3/4/e3491200866ea0263d781334943c6859ce13d029_large.jpg
An alternative solution would be to use a plain bar with no tabs.
You can do that when you change the selected tab.
public class HelloTabWidget extends TabActivity implements OnTabChangeListener{
.....
mTabHost. setOnTabChangedListener(this);
@Override
public void onTabChanged(String tabId) {
// here you can show the Dialog
}
}
精彩评论