Swapped tab order in main activity.
This commit is contained in:
parent
58009016f3
commit
3ddc533f5b
1 changed files with 6 additions and 6 deletions
|
@ -94,13 +94,13 @@ public class MainActivity extends SherlockFragmentActivity implements
|
||||||
actionBar.setSelectedNavigationItem(position);
|
actionBar.setSelectedNavigationItem(position);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
actionBar.addTab(actionBar.newTab()
|
|
||||||
.setText(R.string.title_renderer)
|
|
||||||
.setTabListener(this));
|
|
||||||
actionBar.addTab(actionBar.newTab()
|
actionBar.addTab(actionBar.newTab()
|
||||||
.setText(R.string.title_server)
|
.setText(R.string.title_server)
|
||||||
.setTabListener(this));
|
.setTabListener(this));
|
||||||
|
actionBar.addTab(actionBar.newTab()
|
||||||
|
.setText(R.string.title_renderer)
|
||||||
|
.setTabListener(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -131,8 +131,8 @@ public class MainActivity extends SherlockFragmentActivity implements
|
||||||
@Override
|
@Override
|
||||||
public Fragment getItem(int position) {
|
public Fragment getItem(int position) {
|
||||||
switch (position) {
|
switch (position) {
|
||||||
case 0: return mRendererFragment;
|
case 0: return mServerFragment;
|
||||||
case 1: return mServerFragment;
|
case 1: return mRendererFragment;
|
||||||
default: return null;
|
default: return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue