Skip to content
Browse files

map: replace 'Loading..' with progress bar

  • Loading branch information...
1 parent a3f1eee commit 57396a386832fcc5ca41a5078420898fb9549a62 @ge0rg committed Jul 15, 2011
Showing with 7 additions and 10 deletions.
  1. +6 −9 mapview.xml.tpl
  2. +1 −1 src/MapAct.scala
View
15 mapview.xml.tpl
@@ -11,16 +11,13 @@
android:clickable="true"
android:apiKey="@apiKey@"
/>
-<TextView
+<ProgressBar
+ style="@android:style/Widget.ProgressBar.Large.Inverse"
android:id="@+id/loading"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
android:padding="10sp"
- android:textColor="#000"
- android:shadowColor="#fff"
- android:shadowRadius="3.0"
- android:textSize="25sp"
- android:text="@string/map_loading"
+ android:layout_width="76dip"
+ android:layout_height="76dip"
+ android:gravity="right|top"
+ android:indeterminate="true"
/>
</FrameLayout>
View
2 src/MapAct.scala
@@ -23,7 +23,7 @@ class MapAct extends MapActivity with UIHelper {
lazy val allicons = this.getResources().getDrawable(R.drawable.allicons)
lazy val db = StorageDatabase.open(this)
lazy val staoverlay = new StationOverlay(allicons, this, db)
- lazy val loading = findViewById(R.id.loading).asInstanceOf[TextView]
+ lazy val loading = findViewById(R.id.loading)
lazy val targetcall = getTargetCall()
var showObjects = false

0 comments on commit 57396a3

Please sign in to comment.
Something went wrong with that request. Please try again.