I need to input latitude and longitude separately in 2 EditText
s and display the location at the click of a button
. Somehow i'm not able to get the correct layout as i precisely require 2 EditText
s aligned side by side and a button
below them.
Here is what i already have:
<LinearLayout android:id="@+id/zoom"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true" />
<EditText
android:layout_width="wrap_content"
android:text="@+id/EditText01"
android:layout_height="wrap_content"
android:id="@+id/edLat"
android:layout_toRightOf="@+id/mapView">
</EditText>
<EditText
android:layout_marginLeft="-237dip"
android:layout_marginTop="100dip"
android:layout_width="wrap_content"
android:text="@+id/EditText01"
android:layout_height="wrap_content"
android:id="@+id/edLong"
android:layout_toRightOf="@+id/mapView">
</EditText>
<Button
android:layout_marginLeft="-237dip"
android:layout_marginTop="200dip"
android:layout_width="wrap_content"
android:text="Show Location"
android:layout_height="wrap_content"
android:id="@+id/btnShowLoc"
android:layout_toRightOf="@+id/mapView"></Button>
<com.google.android.maps.MapView
android:id="@+id/mapView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:enabled="true"
android:clickable="true"
android:apiKey="0p8EoZESYekrClENQbOlN5EN16DgXv7Rx0CPTMg" />
</LinearLayout>