Hi, I am trying to get an instance of LinearLayout over MapView in a
MapActivity:

<?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" >

        <com.google.android.maps.MapView
                android:id="@+id/map_view"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:enabled="true"
                android:clickable="true"
                android:apiKey="@string/google_map_api_key_debug" />

        <LinearLayout
                android:id="@+id/zoom_controls"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignBottom="@id/map_view"
                android:layout_centerHorizontal="true" />

        <atm.locator.nl.InfoView
                android:id="@+id/info_view"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerInParent="true"
                android:visibility="gone" />

</RelativeLayout>

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
        xmlns:android="http://schemas.android.com/apk/res/android";
        android:id="@+id/info_view"
        android:orientation="vertical"
        android:layout_centerInParent="true"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" >

    <TextView
        android:id="@+id/info_header"
                style="@style/info_header"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="Info header" />

        <TextView
                android:id="@+id/info_body"
                style="@style/info_body"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="Info body" />

</LinearLayout>

I am failing to make the LinearLayout visible - I bring it to front
and change its visibility like this:

        info_view.bringToFront();
        info_view.setVisibility(LinearLayout.VISIBLE);

After this I see that the info_view.isShown is true and its visibility
set correct. Moreover the info_view reacts on touches - onTouchEvent
is called, but it stays misteriously invisible.

Any ideas how to make it visible?

--~--~---------~--~----~------------~-------~--~----~
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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to