Sanjay Bhalani
Sanjay Bhalani

Reputation: 2474

mapview fragment inside scrollivew flickering

In the Main layout, I have used MapFragment inside a scrollview. Everything seems perfect at first, but there is an issue with the Map when I start scrolling inside scrollview, map flickers and displays background activity layout and below 4.4 it displays home screen layout.see below is XML code.

<fragment xmlns:android="http://schemas.android.com/apk/res/android"
                        android:id="@+id/map"
                        android:name="com.google.android.gms.maps.SupportMapFragment"
                        android:layout_width="match_parent"
                        android:layout_height="150dp"/>

Upvotes: 3

Views: 400

Answers (1)

Anandh
Anandh

Reputation: 159

Set this in your manifest file inside tag android:hardwareAccelerated="true"

Upvotes: 1

Related Questions