This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BaseActivity extends AppCompatActivity { | |
public void progressON() { | |
BaseApplication.getInstance().progressON(this, null); | |
} | |
public void progressON(String message) { | |
BaseApplication.getInstance().progressON(this, message); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Glide.with(this) | |
.load("http://...") | |
.asBitmap() | |
.into(new BitmapImageViewTarget(ivImage) { | |
@Override | |
public void onResourceReady(Bitmap bitmap, GlideAnimation anim) { | |
super.onResourceReady(bitmap, anim); | |
Palette palette=Palette.from(bitmap).generate(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Palette.from(bitmap).generate(new Palette.PaletteAsyncListener() { | |
@Override | |
public void onGenerated(Palette palette) { | |
if(palette==null) | |
return; | |
Palette.Swatch vibrantSwatch = palette.getVibrantSwatch(); | |
if(vibrantSwatch!=null){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MainActivity extends AppCompatActivity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
TextView tvLinkify = (TextView) findViewById(R.id.tvLinkify); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class KoreanUtil { | |
public static final String getComleteWordByJongsung(String name, String firstValue, String secondValue) { | |
char lastName = name.charAt(name.length() - 1); | |
// 한글의 제일 처음과 끝의 범위밖일 경우는 오류 | |
if (lastName < 0xAC00 || lastName > 0xD7A3) { | |
return name; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AvoidSmartManagerActivity extends Activity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
overridePendingTransition(0, 0); | |
finish(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.gun0912.googlemapcustommarker; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.graphics.Bitmap; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.os.Bundle; | |
import android.support.v4.app.FragmentActivity; | |
import android.util.DisplayMetrics; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MarkerItem { | |
double lat; | |
double lon; | |
int price; | |
public MarkerItem(double lat, double lon, int price) { | |
this.lat = lat; | |
this.lon = lon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<FrameLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
> | |
<TextView | |
android:id="@+id/tv_marker" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by TedPark on 16. 4. 11.. | |
*/ | |
public class ClearEditText extends AppCompatEditText implements TextWatcher, View.OnTouchListener, View.OnFocusChangeListener { | |
private Drawable clearDrawable; | |
private OnFocusChangeListener onFocusChangeListener; | |
private OnTouchListener onTouchListener; |