Use a location image button on the map view to show current location.

This commit is contained in:
Jimmy Shih
2012-04-30 15:56:07 -07:00
parent 39a3fb6132
commit 5ed3968771
15 changed files with 47 additions and 19 deletions
+10
View File
@@ -26,6 +26,16 @@ limitations under the License.
android:id="@+id/map_view"
android:layout_height="fill_parent"
android:layout_width="fill_parent" />
<ImageButton
android:background="@drawable/my_location"
android:contentDescription="@string/my_location"
android:id="@+id/map_my_location"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
android:layout_height="wrap_content"
android:layout_marginRight="8dp"
android:layout_marginTop="8dp"
android:layout_width="wrap_content" />
<TextView
android:background="@color/warning_background"
android:drawableLeft="@android:drawable/ic_dialog_alert"