android - layout flickering after translation on galaxy s2 -


i'm trying build android app uses google maps support fragment libraries, going fine until tried implement own sliding menu, didn't seem big task, put behind main activity fragment, , when want show slide main screen right. sounds simple enough right? working fine except 1 thing, whenever tried apply translation (may in animation or without) layout start flickering non stop, have no idea why happens, tried in several ways main issue remained, whenever use translation, layout flicker , other layouts too.

another thing note have samsung galaxy s2, tried run app on friends htc , worked fine, plz help! heres video: http://www.youtube.com/watch?v=icpu5s5r7xe

i solved adding transparent imageview on top of map, guess forced different kind of redraw screen, idea wasn't mine, got different google maps related problem, how xml looks (part of it)

    <fragment         android:layout_marginleft="-40dp"         android:layout_marginright="-40dp"         android:id="@+id/map_fragment"         android:name="com.google.android.gms.maps.supportmapfragment"         android:layout_width="match_parent"         android:layout_height="match_parent"         class="com.google.android.gms.maps.supportmapfragment" />      <imageview          android:id="@+id/map_overlay"         android:layout_width="match_parent"         android:layout_height="match_parent"         android:background="@android:color/transparent"         /> 

hope helps! :)


Comments