Skip to content

Instantly share code, notes, and snippets.

View JackCho's full-sized avatar

jack_1900 JackCho

  • alipay
  • hangzhou
View GitHub Profile
apply plugin: 'maven'
uploadArchives {
repositories {
mavenDeployer {
repository(url: "file:/Users/peacepassion/Desktop/maven_repo")
pom {
setGroupId 'me.ele'
setArtifactId 'amigo-lib'
setVersion '0.0.10'
package com.sh.yeshine.widget;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.util.AttributeSet;
import android.widget.ImageView;
public class AsycnImageView extends ImageView {
package com.ecloud.ssldemo;
import android.content.Context;
import android.util.Log;
import com.squareup.okhttp.OkHttpClient;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.conn.scheme.Scheme;
/**
* This class allows you to listen to when the user is entering the background (i.e. after a home button press,
* or opening recent apps etc) and when the user resumes the application from the background.
*
* @author John McDonnell
*/
public class BetterActivityLifecycleCallbacks implements Application.ActivityLifecycleCallbacks {
private int mForegroundActivities;
/*
* Created by Storm Zhang 2014-8-24.
*/
package com.storm.library;
import android.app.Activity;
import android.content.res.Resources;
import android.view.View;
import android.view.View.OnClickListener;