Skip to content

Instantly share code, notes, and snippets.


Dorian Cussen doridori

View GitHub Profile
seanKenkeremath / Android Lollipop Widget Tinting Guide
Last active Oct 11, 2021
How base colors in Lollipop apply to different UI elements
View Android Lollipop Widget Tinting Guide
Unless specified otherwise, all of the below tinting applies to both Lollipop and pre-Lollipop using AppCompat v21. To use the support version of these attributes, remove the android namespace. For instance, "android:colorControlNormal" becomes "colorControlNormal". These attributes will be propagated to their corresponding attributes within the android namespace for devices running Lollipop. Any exceptions to this will be noted by including the "android:" prefix.
All Clickable Views:
* ripple effect (Lollipop only) -- "colorControlHighlight"
Status Bar:
* background (Lollipop only) - "colorPrimaryDark"
staltz /
Last active Nov 27, 2021
The introduction to Reactive Programming you've been missing

Set up Robolectric with Gradle

  1. Open your top level build.gradle file.

  2. Add Sonatype repo to buildscript repositories and Square Gradle Android Test Plugin to buildscript dependencies. (Older Gradle projects may automatically put this buildscript code in your project build.gradle, in which situation you should put the following in that file.)

emil2k /
Last active Nov 1, 2021
Android utility class for checking device's network connectivity and speed.
* Copyright (c) 2017 Emil Davtyan
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
chrisjenx /
Last active Dec 13, 2015
package com.bizzby.ui.activities;
import android.content.Intent;
import android.os.Bundle;
import android.view.WindowManager;
import com.bizzby.ui.fragments.BaseIncludeFragment;
import com.bizzby.utils.QLog;
orip /
Created Sep 5, 2012
Gson type adapter to serialize and deserialize byte arrays in base64
import java.lang.reflect.Type;
import android.util.Base64;
florianmski / convertLocalizable.rb
Created Aug 23, 2012
Convert your Localizable.strings (iOS) to strings.xml (Android)
View convertLocalizable.rb
# based on
# support comments and Converter such as "%@", "%d", "%0.1f"...
# in your directory : ./main.rb Localizable.strings
file ="strings.xml", "w");
file.puts "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
file.puts "<resources>"