Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix formatting of sample.

  • Loading branch information...
commit 81711fd3bc9afdf239700c3d5c525840a62a58e0 1 parent 666cb9e
@JakeWharton authored
View
26 sample-v4/src/com/jakewharton/android/mapsforge_fragment/v4/sample/SampleActivity.java
@@ -10,26 +10,26 @@
import com.jakewharton.android.mapsforge_fragment.MapViewMode;
public class SampleActivity extends FragmentActivity {
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- getSupportFragmentManager().beginTransaction().add(android.R.id.content, new SampleMapFragment()).commit();
- }
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ getSupportFragmentManager().beginTransaction().add(android.R.id.content, new SampleMapFragment()).commit();
+ }
+
+ private static class SampleMapFragment extends MapFragment {
+ public SampleMapFragment() {
+ super(MapViewMode.OSMARENDER_TILE_DOWNLOAD);
+ }
- private static class SampleMapFragment extends MapFragment {
- public SampleMapFragment() {
- super(MapViewMode.OSMARENDER_TILE_DOWNLOAD);
- }
-
@Override
public MapView onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
MapView view = super.onCreateView(inflater, container, savedInstanceState);
-
+
view.setClickable(true);
view.setBuiltInZoomControls(true);
view.setCenterAndZoom(new GeoPoint(40.434436, -80.024817), (byte)12);
-
+
return view;
}
- }
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.