Skip to content

Instantly share code, notes, and snippets.

@gabrielemariotti
gabrielemariotti / Activity.java
Last active Sep 13, 2020
Floating Action Button (requires Android-L preview)
View Activity.java
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.layoutfab);
//Outline
int size = getResources().getDimensionPixelSize(R.dimen.fab_size);
Outline outline = new Outline();
@johnscheible
johnscheible / google_drive_gradle_dependencies
Last active Nov 20, 2020
Dependencies for using Google Drive APIs with the Android Gradle build system
View google_drive_gradle_dependencies
// Replace 'dependencies' in your build.gradle file with the following
// or add these to whatever other dependencies you have.
dependencies {
compile 'com.android.support:support-v4:13.0.+'
compile 'com.google.android.gms:play-services:3.1.36+'
compile('com.google.api-client:google-api-client:1.4.1-beta') {
exclude group: 'com.google.android.google-play-services'
}
compile 'com.google.http-client:google-http-client-gson:1.15.0-rc'