我需要帮助,因为我实现了导航抽屉,但我需要加载FragmentActivity
@Override
public void onNavigationDrawerItemSelected(int position) {
Fragment objFragment = null;
switch (position) {
case 0:
//startActivity(new Intent(this, MainActivity.class));
break;
case 1:
//startActivity(new Intent(this, MainActivity.class));
break;
case 2:
// objFragment = new menu3_Fragment();
break;
}
}
public class MainActivity extends FragmentActivity {
我需要在片段中加载MainActivity。