Available for int y 10 download on int x 10 Wroxcom

EditText editTextl = new EditText(getApplicationContext()); editText1.setText("Screen Pinned");

MapView.LayoutParams screenLP;

screenLP = new MapView.LayoutParams(MapView.LayoutParams.WRAP_CONTENT,

MapView.LayoutParams.WRAP_CONTENT, x, y,

MapView.LayoutParams.TOP_LEFT); mapView.addView(editText1, screenLP);

To pin a View relative to a physical map location, pass four parameters when constructing the new Map View LayoutParams, representing the height, width, GeoPoint to pin to, and layout alignment as shown in Listing 8-15.

Was this article helpful?

0 0
Mobile Apps Made Easy

Mobile Apps Made Easy

Quick start guide to skyrocket your offline and online business success with mobile apps. If you know anything about mobile devices, you’ve probably heard that famous phrase coined by one of the mobile device’s most prolific creators proclaiming that there’s an app for pretty much everything.

Get My Free Training Guide

Post a comment