Permalink
Browse files

Added a "Close" button to the location window.

  • Loading branch information...
1 parent 772649e commit 8396e34fcfbbc886015da04c8f1e045eecfa5535 @exhuma exhuma committed May 16, 2010
View
@@ -125,7 +125,12 @@
android:layout_height="4dip" />
<Button
android:id="@+id/set_location"
- android:layout_width="wrap_content"
+ android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/set_location"/>
+
+ <Button android:id="@+id/close_location_window"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/close" />
</LinearLayout>
@@ -23,4 +23,5 @@
<string name="empty_msg">Sie haben noch keine Orte festgelegt.</string>
<string name="no_provider">Keine Längen-/Breitengrad Informationen verfügbar</string>
+<string name="close">Schliessen</string>
</resources>
@@ -23,4 +23,5 @@
<string name="empty_msg">Vous n\'avez pas encore saisi des endroits.</string>
<string name="no_provider">Pas d\'info disponible sur cet endroit.</string>
+<string name="close">Fermer</string>
</resources>
View
@@ -23,4 +23,5 @@
<string name="empty_msg">Your locations are empty.</string>
<string name="no_provider">Please enable a location provider.</string>
+<string name="close">Close</string>
</resources>
@@ -64,6 +64,13 @@ public void onClick(View arg0) {
}
});
+ Button closeButton = (Button) findViewById(R.id.close_location_window);
+ closeButton.setOnClickListener(new OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ finish();
+ }
+ });
if (location_id != -1) {
Cursor c = db.getLocation(location_id);

0 comments on commit 8396e34

Please sign in to comment.