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
// 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); |
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
import android.content.res.Resources; | |
import android.graphics.Bitmap; | |
import android.graphics.NinePatch; | |
import android.graphics.Rect; | |
import android.graphics.drawable.NinePatchDrawable; | |
import java.nio.ByteBuffer; | |
import java.nio.ByteOrder; | |
/** |
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
package com.snepo.common.widgets; | |
import android.content.Context; | |
import android.graphics.Canvas; | |
import android.graphics.Paint; | |
import android.graphics.Path; | |
import android.graphics.Path.Direction; | |
import android.graphics.Path.FillType; | |
import android.graphics.PorterDuff.Mode; | |
import android.graphics.PorterDuffXfermode; |
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
//http://stackoverflow.com/questions/2646028/android-horizontalscrollview-within-scrollview-touch-handling | |
public class VerticalScrollView extends ScrollView { | |
private float xDistance, yDistance, lastX, lastY; | |
public VerticalScrollView(Context context, AttributeSet attrs) { | |
super(context, attrs); | |
} | |
@Override | |
public boolean onInterceptTouchEvent(MotionEvent ev) { |
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
/** | |
* @project ActionBarSherlock | |
* @author chris.jenkins | |
* @created Aug 3, 2012 | |
*/ | |
package android.support.v4.app; | |
/** | |
* @author chris.jenkins | |
*/ |
NewerOlder