Skip to content

Instantly share code, notes, and snippets.

Avatar

Stas Parshin pengrad

View GitHub Profile
View android-javadoc
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 Oct 16, 2015
Rotating FAB without rotating shadow
View RotatingFab.java
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 Aug 29, 2015
Activity with StreetViewPanorama as View
View MainActivity.java
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;
You can’t perform that action at this time.