Skip to content

Instantly share code, notes, and snippets.


Michael krmao

View GitHub Profile
amaksoft /
Last active Jan 13, 2021
Handling TextView compound drawables touch and click events
* Copyright 2017, Andrey Makeev
* 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
* Unless required by applicable law or agreed to in writing, software
bitsnaps / ZipUnzip.groovy
Created Jul 19, 2016
Zip and UnZip files using Groovy
View ZipUnzip.groovy
String zipFileName = ""
String inputDir = "logs"
def outputDir = "zip"
//Zip files
ZipOutputStream zipFile = new ZipOutputStream(new FileOutputStream(zipFileName))
new File(inputDir).eachFile() { file ->
pyricau /
Last active Jan 4, 2021
"Fix" for InputMethodManager leaking the last focused view:
import android.content.Context;
import android.content.ContextWrapper;
import android.os.Bundle;
import android.os.Looper;
import android.os.MessageQueue;
import android.util.Log;
import android.view.View;
import android.view.ViewTreeObserver;
hvkale / colors.xml
Last active Feb 14, 2021
Material Design Color Palette Colors.xml Resource file for Android
View colors.xml
<?xml version="1.0" encoding="utf-8"?>
Google Material Design Color Palette for Android
Spreadsheet used to create this reosurce -
Link to this colors.xml resource file -
Harshad Kale