Created
January 14, 2013 22:55
-
-
Save Richie97/4534329 to your computer and use it in GitHub Desktop.
Map Fragment Black Box Fix
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
if(Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB){ | |
FrameLayout frameLayout = new FrameLayout(getActivity()); | |
frameLayout.setBackgroundColor(getResources().getColor(android.R.color.transparent)); | |
((ViewGroup) v).addView(frameLayout, | |
new ViewGroup.LayoutParams(FrameLayout.LayoutParams.FILL_PARENT, FrameLayout.LayoutParams.FILL_PARENT)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment