Skip to content

Instantly share code, notes, and snippets.

@jdkoren
jdkoren / ic_baseline_settings_24.xml
Created August 4, 2022 19:42
Android AVD settings icons with shorter paths
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="#fff"
android:pathData="M4.8,12a7.2,7.2 0 0 0 14.4,0a7.2,7.2 0 0 0 -14.4,0zM8.4,12a3.6,3.6 0 0 1 7.2,0a3.6,3.6 0 0 1 -7.2,0z" />
<path
<uses-library android:name="com.google.android.things" android:required="false" />
if (Utils.IS_IOT) {
// running Android Things
}
public class Utils {
public static final boolean IS_IOT = isIot();
@jdkoren
jdkoren / marquee.java
Last active December 19, 2016 18:54
Marquee text display for Android Things using HT16K33
/*
* 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
*
* Unless required by applicable law or agreed to in writing, software