Skip to content

Instantly share code, notes, and snippets.

android.libraryVariants.all { variant ->
javadocs.doFirst {
classpath += files(android.bootClasspath)
if (variant.hasProperty('javaCompileProvider')) {
classpath += files(variant.javaCompileProvider.get().classpath.files)
} else if (variant.hasProperty('javaCompiler')) {
classpath += files(variant.javaCompiler.classpath.files)
}
// Process AAR dependencies
def aarDependencies = classpath.filter {
@pengrad
pengrad / RotatingFab.java
Last active October 16, 2015 22:01
Rotating FAB without rotating shadow
package com.github.pengrad.podcasts.ui;
import android.content.Context;
import android.os.Build;
import android.util.AttributeSet;
import android.view.View;
import android.view.animation.Animation;
import android.widget.FrameLayout;
import com.github.pengrad.podcasts.R;
@pengrad
pengrad / MainActivity.java
Created August 29, 2015 18:07
Activity with StreetViewPanorama as View
package com.github.pengrad.testtest;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.google.android.gms.maps.OnStreetViewPanoramaReadyCallback;
import com.google.android.gms.maps.StreetViewPanorama;
import com.google.android.gms.maps.StreetViewPanoramaView;
import com.google.android.gms.maps.model.LatLng;