Skip to content

Instantly share code, notes, and snippets.

View TheFinestArtist's full-sized avatar
🔥
Reigniting

Leonardo Kim TheFinestArtist

🔥
Reigniting
View GitHub Profile
<?xml version="1.0" encoding="utf-8"?>
<!--
/**
* Copyright 2013 The Finest Artist
*
* 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
@TheFinestArtist
TheFinestArtist / colors_basic.xml
Last active December 17, 2015 03:48
Basic color code for Android
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="Color_White">#FFFFFF</color>
<color name="Color_Ivory">#FFFFF0</color>
<color name="Color_LightYellow">#FFFFE0</color>
<color name="Color_Yellow">#FFFF00</color>
<color name="Color_Snow">#FFFAFA</color>
<color name="Color_FloralWhite">#FFFAF0</color>
<color name="Color_LemonChiffon">#FFFACD</color>
/**
* Copyright 2013 The Finest Artist
*
* 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 / colors_grey.xml
Last active June 13, 2019 23:33
Grey color code for Android
<?xml version="1.0" encoding="utf-8"?>
<!--
/**
* Copyright 2013 The Finest Artist
*
* 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
@TheFinestArtist
TheFinestArtist / LanguageDetector.java
Created December 27, 2014 13:40
Detect whether current language is Korean, Japanese or Others
/**
* Created by TheFinestArtist on 2014. 9. 2..
*/
public class LanguageDetector {
public enum Language {Korean, Japanese, English}
public static boolean isEnglish(CharSequence charSequence) {
boolean isEnglish = true;
for (char c : charSequence.toString().toCharArray()) {
@TheFinestArtist
TheFinestArtist / Snackbars.java
Last active September 4, 2022 10:15
Wrapper class to customise android.support.design snack bar!
/**
* Snackbars
*
* @author The Finest Artist
*/
public class Snackbars {
private Snackbars() {
}
@TheFinestArtist
TheFinestArtist / DipPixelHelper.java
Created July 25, 2015 14:08
DipPixelHelper.java
import android.content.Context;
import android.content.res.Resources;
import android.util.TypedValue;
/**
* DipPixelHelper
*
* @author The Finest Artist
*/
public class DipPixelHelper {
@TheFinestArtist
TheFinestArtist / ScreenHelper.java
Created July 25, 2015 14:10
ScreenHelper.java
/**
* Copyright 2013 The Finest Artist
* <p/>
* 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
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
* Unless required by applicable law or agreed to in writing, software
@TheFinestArtist
TheFinestArtist / KeyboardHelper.java
Created July 25, 2015 14:11
KeyboardHelper.java
import android.content.Context;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
/**
* KeyboardHelper
* It pops up keyboard to input texts and drops a cursor to a view(final View view, such as Edittext)
*
* @author The Finest Artist
*/
import android.content.Context;
/**
* Created by TheFinestArtist on 5/14/15.
*/
public class Vibrator {
public static void eee(Context context) {
if (context == null)
return;