Skip to content

Instantly share code, notes, and snippets.

Avatar

Nick Butcher nickbutcher

View GitHub Profile
@nickbutcher
nickbutcher / keybase.md
Created Nov 1, 2016
Keybase.io verification
View keybase.md

Keybase proof

I hereby claim:

  • I am nickbutcher on github.
  • I am nickbutcher (https://keybase.io/nickbutcher) on keybase.
  • I have a public key whose fingerprint is 73CC 3CFE 15F6 1A79 4DD3 E103 B483 09D2 BAEE 267E

To claim this, I am signing this object:

@nickbutcher
nickbutcher / a_stroke.xml
Created Nov 4, 2016
Trimming Paths. Code from Udacity course demonstrating trimming the path of an Android AnimatedVectorDrawable. https://www.youtube.com/watch?v=ecCSzKi-ZxM&t=2m12s
View a_stroke.xml
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2016 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
View toast.iconanim
{
"artwork": {
"id": "vector",
"canvasColor": null,
"width": 24,
"height": 24,
"layers": [
{
"id": "group",
"type": "group",
@nickbutcher
nickbutcher / AndroidManifest.xml
Last active Nov 13, 2017
Demonstrating techniques for supporting wide color gamut rendering.
View AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) 2017 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License
@nickbutcher
nickbutcher / MainActivity.java
Created Oct 31, 2017 — forked from chornbec/MainActivity.java
Getting issue with BodyMovin on Android Studio
View MainActivity.java
package com.example.myapplication2;
import android.graphics.drawable.Animatable
import android.graphics.drawable.Drawable
import android.widget.ImageView;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
@nickbutcher
nickbutcher / GradientMap.kt
Last active Feb 7, 2018
A prototype implementation of gradient mapping (https://bjango.com/articles/gradientmaps/) on Android.
View GradientMap.kt
/*
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the
* License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
View endless-pin-jump.iconanim
{
"artwork": {
"id": "vector",
"canvasColor": null,
"width": 800,
"height": 600,
"layers": [
{
"id": "horizon",
"type": "path",
View simple_vector.xml
<!-- Copyright 2018 Google LLC.
SPDX-License-Identifier: Apache-2.0 -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:name="cross"
View vector_fill_stroke.xml
<!-- Copyright 2018 Google LLC.
SPDX-License-Identifier: Apache-2.0 -->
<vector ...>
<path
android:pathData="..."
android:fillColor="#ff00ff"
android:strokeColor="#999"
android:strokeWidth="2"
android:strokeLineCap="square" />
View vector_groups.xml
<!-- Copyright 2018 Google LLC.
SPDX-License-Identifier: Apache-2.0 -->
<vector ...>
<path .../>
<group
android:name="foo"
android:pivotX="12"
android:pivotY="0"