Skip to content

Instantly share code, notes, and snippets.

View livotov's full-sized avatar

Dmitri Livotov livotov

View GitHub Profile
@groodt
groodt / gist:5181980
Created March 17, 2013 15:17
"Fix" SupportMapFragment issues Android 2.3.x
// Janky "fix" to prevent artefacts when embedding GoogleMaps in a sliding view.
// https://github.com/jfeinstein10/SlidingMenu/issues/168
// set background to transparent
private void setMapTransparent(ViewGroup group) {
int childCount = group.getChildCount();
for (int i = 0; i < childCount; i++) {
View child = group.getChildAt(i);
if (child instanceof ViewGroup) {
setMapTransparent((ViewGroup) child);