Skip to content

Instantly share code, notes, and snippets.

Changhoon, Jin susemi99

Block or report user

Report or block susemi99

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
@susemi99
susemi99 / Logg.java
Last active Mar 29, 2018
Clickable in Logcat
View Logg.java
public class Logg {
public static void v(String msg) {
Log.v(tag(), msg);
}
public static void d(String msg) {
Log.d(tag(), msg);
}
public static void i(String msg) {
@susemi99
susemi99 / Second.java
Created Mar 7, 2017
EditText validation in MVVM
View Second.java
package kr.changhoonjin.testmvp.view_models;
import android.databinding.ObservableBoolean;
import android.databinding.ObservableField;
import android.databinding.ObservableInt;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.util.Log;
import android.util.Patterns;
View Listing all extras of an Intent.java
// http://stackoverflow.com/a/15074150/1025379
Bundle bundle = getIntent().getExtras();
if (bundle != null) {
for (String key : bundle.keySet()) {
Object value = bundle.get(key);
Log.w("###", String.format("%s: %s (%s)", key, value.toString(), value.getClass().getName()));
}
}
View DateFormatter.java
public class DateFormatter {
public static final String YEAR_MONTH_DAY = "yyyy-MM-dd";
public static final String ISO8601 = "yyyy-MM-dd'T'HH:mm:ssZ";
/**
* 날짜/시간 변환
*
* @param calendar Calendar
* @param pattern yyyy-MM-dd HH:mm:ss
* @return
View MainActivity.java
textName.setTypeface(TypefaceUtil.createLightFont(getApplicationContext()));
You can’t perform that action at this time.