Skip to content

Instantly share code, notes, and snippets.

View TheFinestArtist's full-sized avatar
🔥
Reigniting

Leonardo Kim TheFinestArtist

🔥
Reigniting
View GitHub Profile
//
// UIView+CustomTimingFunction.h
// Instants
//
// Created by Christian Giordano on 16/10/2013.
// Copyright (c) 2013 Christian Giordano. All rights reserved.
//
#import <UIKit/UIKit.h>
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.graphics.Rect;
import android.graphics.drawable.NinePatchDrawable;
import android.util.DisplayMetrics;
import java.io.BufferedInputStream;
import java.io.File;
/*
* Author: Felipe Herranz (felhr85@gmail.com)
* Contributors:Francesco Verheye (verheye.francesco@gmail.com)
* Israel Dominguez (dominguez.israel@gmail.com)
*/
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicBoolean;
import android.os.Handler;
@TheFinestArtist
TheFinestArtist / AndroidBug5497Workaround.java
Created September 24, 2015 11:08
AndroidBug5497Workaround.java
public class AndroidBug5497Workaround {
// For more information, see https://code.google.com/p/android/issues/detail?id=5497
// To use this class, simply invoke assistActivity() on an Activity that already has its content view set.
public static void assistActivity (Activity activity) {
new AndroidBug5497Workaround(activity);
}
private View mChildOfContent;
@TheFinestArtist
TheFinestArtist / KeyboardUtil.java
Created September 24, 2015 11:07
KeyboardUtil.java
/*
* Copyright 2015 Mike Penz All rights reserved.
*
* 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
@TheFinestArtist
TheFinestArtist / KeyboardEditText.java
Created September 24, 2015 05:53
KeyboardEditText.java
/**
* Created by TheFinestArtist on 9/24/15.
*/
public class KeyboardEditText extends EditText {
public KeyboardEditText(Context context) {
super(context);
}
public KeyboardEditText(Context context, AttributeSet attrs) {
@TheFinestArtist
TheFinestArtist / ZoomLayout.java
Last active February 22, 2024 10:46 — forked from anorth/ZoomLayout.java
Pinch-zoomable Android frame layout
package au.id.alexn;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.view.ScaleGestureDetector;
import android.view.View;
import android.widget.FrameLayout;
/**
* Copyright 2013 Bo Wang
*
* 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
@TheFinestArtist
TheFinestArtist / UIImage+Custom.h
Last active August 29, 2015 14:25
UIImage+Custom
//
// UIImage+Custom.h
//
// Created by TheFinestArtist
//
#import <Foundation/Foundation.h>
@interface UIImage (Custom)
//
// UIColor+Custom.h
//
// Created by TheFinestArtist
//
#import <Foundation/Foundation.h>
@interface UIColor (Custom)