我在项目中使用redux-form。 还有一个问题: 当用户更改其中一个表单字段时,“脏”标志将等于“false”,但如果用户再次更改任何字段,它将返回dirty == true。 一旦任何字段被更改,我希望变脏== true。
@Override
protected void onAttachedToWindow() {
super.onAttachedToWindow(); //onCreateView() or onResume() should work too
FragmentManager fragmentManager = ((AppCompatActivity) getContext()).getSupportFragmentManager();
SupportMapFragment mapFragment = SupportMapFragment.newInstance();
fragmentManager.beginTransaction()
.replace(R.id.mapContainer, mapFragment)
.commit();
mapFragment.getMapAsync(this);
}
@Override
public void onMapReady(GoogleMap googleMap) {
this.googleMap = googleMap;
UiSettings uiSettings = googleMap.getUiSettings();
uiSettings.setZoomControlsEnabled(false);
//do your initialization + recreate your last map position from BundleSavedIntance: check this answer: http://stackoverflow.com/questions/16697891/google-maps-android-api-v2-restoring-map-state/16698624#16698624
}