Skip to content

Instantly share code, notes, and snippets.

View nickbutcher's full-sized avatar

Nick Butcher nickbutcher

View GitHub Profile
@nickbutcher
nickbutcher / keybase.md
Created November 1, 2016 14:10
Keybase.io verification

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 November 4, 2016 14:09
Trimming Paths. Code from Udacity course demonstrating trimming the path of an Android AnimatedVectorDrawable. https://www.youtube.com/watch?v=ecCSzKi-ZxM&t=2m12s
<?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
{
"artwork": {
"id": "vector",
"canvasColor": null,
"width": 24,
"height": 24,
"layers": [
{
"id": "group",
"type": "group",
@nickbutcher
nickbutcher / AndroidManifest.xml
Last active November 13, 2017 15:11
Demonstrating techniques for supporting wide color gamut rendering.
<?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 October 31, 2017 09:53 — forked from chornbec/MainActivity.java
Getting issue with BodyMovin on Android Studio
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 {
{
"artwork": {
"id": "vector",
"canvasColor": null,
"width": 800,
"height": 600,
"layers": [
{
"id": "horizon",
"type": "path",
<!-- 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"
<!-- 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" />
<!-- Copyright 2018 Google LLC.
SPDX-License-Identifier: Apache-2.0 -->
<vector ...>
<path .../>
<group
android:name="foo"
android:pivotX="12"
android:pivotY="0"
<!-- Copyright 2018 Google LLC.
SPDX-License-Identifier: Apache-2.0 -->
<vector...>
<path
android:pathData="..."
android:trimPathStart="0.1"
android:trimPathEnd="0.9" />
</vector>