• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps show other widgets with MapView

usml

Newbie
Can't get this to work (simplified layout xml) --
<LinearLayout>
<TextView android:text="text1" ... />
<com.google.android.maps.MapView
android:layout_width​
="fill_parent"

android:layout_height="wrap_content"
... />

<TextView android:text="text2" ... />
</LinearLayout>

Only "text1" and the mapview show up, "text2" not displayed. Replaced "LinearLayout" with "RelativeLayout" (with proper "android:layout_xxx" setups), the same problem.

Even though "text1" get displayed, it appears that it's displayed ON TOP of the map, not side by side. So, it seems that the MapView always take the whole display space.

Any idea on how to make "text2" shown? Thanks.
 
Back
Top Bottom