In my application used Google Maps V2. Here's the code fragment, which describes the map fragment.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<fragment
android:id="@+id/g_map"
android:layout_width="match_parent"
android:layout_height="match_parent"
class="com.google.android.gms.maps.SupportMapFragment" />
<ImageView
android:id="@+id/center_button"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:background="@drawable/btn_centering"
android:clickable="true" />
</RelativeLayout>
How can I limit the rectangular area of the map on which the user can navigate? I tried to do this with the OnCameraChangeListener, but it looked ugly and unstable. (Perhaps this is my fault)))