我有双窗格布局,适用于平板电脑。但是在手机详细信息片段的onCreateView永远不会被调用。有什么原因吗?
vehicleInfoFragment = new VehicleInfoDetailsFragment(); Intent i = this.getIntent(); index = i.getExtras().getInt(INDEX_LABEL, 0); getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, vehicleInfoFragment).commit(); vehicleInfoFragment.populateRouteDetails(index);