Skip to content

Instantly share code, notes, and snippets.

@Richie97
Created January 14, 2013 22:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Richie97/4534329 to your computer and use it in GitHub Desktop.
Save Richie97/4534329 to your computer and use it in GitHub Desktop.
Map Fragment Black Box Fix
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