Animator2 samples #497

This commit is contained in:
Emux
2018-02-08 09:35:44 +02:00
parent 03eb28f09e
commit 5aba3ac373
5 changed files with 66 additions and 2 deletions

View File

@@ -10,7 +10,7 @@
- Render themes: styles improvements [#479](https://github.com/mapsforge/vtm/pull/479)
- Internal render themes improvements [#488](https://github.com/mapsforge/vtm/pull/488)
- Map view roll [#474](https://github.com/mapsforge/vtm/pull/474)
- Fling animation improvements [#489](https://github.com/mapsforge/vtm/pull/489)
- Physical fling implementation [#497](https://github.com/mapsforge/vtm/pull/497)
- Polygon symbols default disabled [#405](https://github.com/mapsforge/vtm/issues/405)
- Map fractional zoom [#487](https://github.com/mapsforge/vtm/issues/487)
- Render theme fallback internal resources [#477](https://github.com/mapsforge/vtm/issues/477)
@@ -88,7 +88,7 @@
## Version 0.7.0 (2017-02-26)
- Mapsforge multiple map files [#208](https://github.com/mapsforge/vtm/issues/208)
- Improved gestures implementation [#253](https://github.com/mapsforge/vtm/issues/253)
- New gestures implementation [#253](https://github.com/mapsforge/vtm/issues/253)
- Polygon label position enhancements [#80](https://github.com/mapsforge/vtm/issues/80)
- vtm-web modules update [#51](https://github.com/mapsforge/vtm/issues/51)
- Mapzen MVT vector tiles [#57](https://github.com/mapsforge/vtm/issues/57)

View File

@@ -21,6 +21,9 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".Animator2Activity"
android:configChanges="keyboardHidden|orientation|screenSize" />
<activity
android:name=".AtlasMarkerOverlayActivity"
android:configChanges="keyboardHidden|orientation|screenSize" />

View File

@@ -0,0 +1,32 @@
/*
* Copyright 2018 devemux86
*
* This program is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.oscim.android.test;
import org.oscim.utils.Parameters;
public class Animator2Activity extends MarkerOverlayActivity {
public Animator2Activity() {
super();
Parameters.ANIMATOR2 = true;
}
@Override
protected void onDestroy() {
super.onDestroy();
Parameters.ANIMATOR2 = false;
}
}

View File

@@ -119,6 +119,7 @@ public class Samples extends Activity {
linearLayout.addView(createButton(LocationActivity.class));
linearLayout.addView(createLabel("User Interaction"));
linearLayout.addView(createButton(Animator2Activity.class));
linearLayout.addView(createButton(MapEventLayer2Activity.class));
linearLayout.addView(createButton(LayerGroupActivity.class));

View File

@@ -0,0 +1,28 @@
/*
* Copyright 2018 devemux86
*
* This program is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.oscim.test;
import org.oscim.gdx.GdxMapApp;
import org.oscim.utils.Parameters;
public class Animator2Test extends MarkerLayerTest {
public static void main(String[] args) {
Parameters.ANIMATOR2 = true;
GdxMapApp.init();
GdxMapApp.run(new Animator2Test());
}
}