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
| public class ResponseListenerAction<T> implements Action1<T> { | |
| private Response.Listener<T> responseListener; | |
| public ResponseListenerAction(Response.Listener<T> responseListener) { | |
| this.responseListener = responseListener; | |
| } | |
| @Override |
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
| ContentResolver.setIsSyncable(account, StubProvider.AUTHORITY, 1); | |
| ContentResolver.setSyncAutomatically(account, StubProvider.AUTHORITY, true); | |
| ContentResolver.addPeriodicSync(account, StubProvider.AUTHORITY, new Bundle(), AbstractSyncableResource.SYNC_TIME); |
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.homeaway.floatlabel.library; | |
| import android.content.Context; | |
| import android.content.res.TypedArray; | |
| import android.text.Editable; | |
| import android.text.TextWatcher; | |
| import android.util.AttributeSet; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| import android.widget.EditText; |
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
| task robolectric(type: Test, dependsOn: assembleRelease) { | |
| testClassesDir = sourceSets.robolectric.output.classesDir | |
| android.sourceSets.main.java.srcDirs.each { dir -> | |
| project.getPlugins().getPlugin('android').prepareTaskMap.each { | |
| sourceSets.robolectric.compileClasspath += files(it.value.explodedDir.getAbsolutePath() + '/classes.jar') | |
| sourceSets.robolectric.runtimeClasspath += files(it.value.explodedDir.getAbsolutePath() + '/classes.jar') | |
| } |
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.vice.viceforandroid.views; | |
| import android.content.Context; | |
| import android.text.TextPaint; | |
| import android.text.TextUtils; | |
| import android.util.AttributeSet; | |
| import android.widget.TextView; | |
| /** | |
| * Created by briangriffey on 11/13/13. |
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.sceneTap.views; | |
| import android.graphics.Bitmap; | |
| import android.graphics.BitmapShader; | |
| import android.graphics.Canvas; | |
| import android.graphics.Color; | |
| import android.graphics.ColorFilter; | |
| import android.graphics.Paint; | |
| import android.graphics.Rect; | |
| import android.graphics.Shader; |
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
| uploadArchives { | |
| repositories { | |
| mavenDeployer { | |
| repository url: 'file://' + new File(System.getProperty('user.home'), '.m2/repository').absolutePath | |
| pom.artifactId = "yourartifactname" | |
| pom.groupId = "com.yourgroup" | |
| pom.version = "1.0.0-SNAPSHOT" | |
| } |
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; | |
| /** |