Created
December 17, 2012 07:28
-
-
Save jgilfelt/4316441 to your computer and use it in GitHub Desktop.
"fix" for black surface artefact left by MapFragment when transitioned in a ViewPager on old API versions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical" > | |
<FrameLayout | |
android:layout_width="match_parent" | |
android:layout_height="0dp" | |
android:layout_weight="1" > | |
<android.support.v4.view.ViewPager | |
android:id="@+id/fragment_container" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" > | |
</android.support.v4.view.ViewPager> | |
<!-- hack to fix ugly black artefact with maps v2 --> | |
<FrameLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="@android:color/transparent" /> | |
</FrameLayout> | |
<include | |
android:id="@+id/info_panel" | |
layout="@layout/info_panel" /> | |
</LinearLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment