Skip to content

Instantly share code, notes, and snippets.

@TouchBoarder
TouchBoarder / MainActivity.java
Created Apr 9, 2016 — forked from lisawray/MainActivity.java
Vector drawables from XML with the Android support library 23.3.0
View MainActivity.java
package com.xwray.vectorbinding;
import android.databinding.BindingAdapter;
import android.databinding.DataBindingUtil;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.graphics.drawable.VectorDrawableCompat;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
@TouchBoarder
TouchBoarder / BarcodeTrackerFactory.java
Last active Aug 29, 2015
//=================================================================================== // Graphic Barcode Tracker with onBarcodeUpdate callback to the UI Thread //=================================================================================== // Based on googlesamples/android-vision/multi-tracker/app:
View BarcodeTrackerFactory.java
/*
* Copyright (C) The Android Open Source Project
*
* 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