I am having difficulty finding the right "button" to control the
orientation of the native zoom controls such that they properly align
with the left or right border of the screen; I use the zoom controls
in a MapView. Below the (standard fare) XML layout.
I can push the native zoom controls into any corner (to the left in
the example), but the orientation of the zoom control remains
horizontal. I've experimented with orientation, gravity and other
layout parameters, but could not find out how to rotate the rotate the
zoom control to align with the left and right screen borders - how?

<------------------------ snip ---------------------------->
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/
android"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        >

   <LinearLayout android:id="@+id/layout"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        />

   <LinearLayout android:id="@+id/layout_zoom"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerVertical="true"
        android:layout_alignParentRight="true"
        />

</RelativeLayout>

<------------------------ snip ---------------------------->
            // Add native zoom controls
            mMapView.setClickable(true);
            mMapView.setEnabled(true);
            mMapView.displayZoomControls(true);

            LinearLayout containerLayout = (LinearLayout)findViewById
(R.id.layout);
            containerLayout.addView(mMapView);
            LinearLayout zoomView = (LinearLayout)mMapView.getZoomControls();
            LinearLayout zoom = (LinearLayout)findViewById(R.id.layout_zoom);
            zoom.addView(zoomView);
<------------------------ snip ---------------------------->




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to