Skip to content

Instantly share code, notes, and snippets.

Leonardo Taehwan Kim TheFinestArtist

Block or report user

Report or block TheFinestArtist

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View colors_transparent.xml
<?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 Dec 17, 2015
Basic color code for Android
View colors_basic.xml
<?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>
View YouTubePlayerActivity.java
/**
* 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 Dec 17, 2015
Grey color code for Android
View colors_grey.xml
<?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 Dec 27, 2014
Detect whether current language is Korean, Japanese or Others
View LanguageDetector.java
/**
* 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 Dec 4, 2015
Wrapper class to customise android.support.design snack bar!
View Snackbars.java
/**
* Snackbars
*
* @author The Finest Artist
*/
public class Snackbars {
private Snackbars() {
}
View DipPixelHelper.java
import android.content.Context;
import android.content.res.Resources;
import android.util.TypedValue;
/**
* DipPixelHelper
*
* @author The Finest Artist
*/
public class DipPixelHelper {
View 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
View 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
*/
View Vibrator.java
import android.content.Context;
/**
* Created by TheFinestArtist on 5/14/15.
*/
public class Vibrator {
public static void eee(Context context) {
if (context == null)
return;
You can’t perform that action at this time.