-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
113 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<FrameLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" | ||
> | ||
<com.google.android.gms.maps.MapView | ||
android:id="@+id/mapview" | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" | ||
/> | ||
<ProgressBar | ||
style="@android:style/Widget.ProgressBar.Large.Inverse" | ||
android:id="@+id/loading" | ||
android:padding="10sp" | ||
android:layout_width="76dip" | ||
android:layout_height="76dip" | ||
android:gravity="right|top" | ||
android:indeterminate="true" | ||
/> | ||
</FrameLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<style name="MapCallSign"> | ||
<item name="android:typeface">monospace</item> | ||
<item name="android:textSize">18sp</item> | ||
<item name="android:textColor">#ff000000</item> | ||
<item name="android:shadowColor">#80c8ffc8</item> | ||
<item name="android:shadowRadius">3</item> | ||
<item name="android:shadowDx">0</item> | ||
<item name="android:shadowDy">0</item> | ||
<item name="android:padding">0sp</item> | ||
</style> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
package org.aprsdroid.app | ||
|
||
import android.app.Activity | ||
import android.os.Bundle | ||
import android.view.View | ||
|
||
import com.google.android.gms.maps.MapView | ||
|
||
class GoogleMapAct extends Activity with UIHelper { | ||
lazy val loading = findViewById(R.id.loading).asInstanceOf[View] | ||
lazy val mapview = findViewById(R.id.mapview).asInstanceOf[MapView] | ||
|
||
override def onCreate(savedInstanceState: Bundle) { | ||
super.onCreate(savedInstanceState) | ||
setContentView(R.layout.googlemapview) | ||
|
||
mapview.onCreate(savedInstanceState) | ||
} | ||
|
||
override def onLowMemory(): Unit = { | ||
super.onLowMemory() | ||
mapview.onLowMemory() | ||
} | ||
|
||
override def onStart(): Unit = { | ||
super.onStart() | ||
mapview.onStart() | ||
} | ||
|
||
override def onResume(): Unit = { | ||
super.onResume() | ||
mapview.onResume() | ||
} | ||
|
||
override def onSaveInstanceState(outState: Bundle): Unit = { | ||
super.onSaveInstanceState(outState) | ||
mapview.onSaveInstanceState(outState) | ||
} | ||
|
||
override def onPause(): Unit = { | ||
super.onPause() | ||
mapview.onPause() | ||
} | ||
|
||
override def onStop(): Unit = { | ||
super.onStop() | ||
mapview.onStop() | ||
} | ||
|
||
override def onDestroy(): Unit = { | ||
super.onDestroy() | ||
mapview.onDestroy() | ||
} | ||
|
||
override def onStartLoading() { | ||
loading.setVisibility(View.VISIBLE) | ||
} | ||
|
||
override def onStopLoading() { | ||
loading.setVisibility(View.GONE) | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters