Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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"/>
like image 720
Sanjay Bhalani Avatar asked Jul 08 '26 22:07

Sanjay Bhalani


1 Answers

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

like image 117
Anandh Avatar answered Jul 14 '26 08:07

Anandh