목록전체 글 (44)
Dev.
public class TextWatcher_MoneyToComma implements TextWatcher { @SuppressWarnings("unused") private EditText mEditText; String strAmount = ""; // 임시 저장값 (콤마) public TextWatcher_MoneyToComma(EditText e) { mEditText = e; } @Override public void afterTextChanged(Editable s) { // TODO Auto-generated method stub } @Override public void beforeTextChanged(CharSequence s, int start, int count, int after)..
style.xml CDialog.class public class CDialog { private static Dialog mLoadingDialog = null; public static void onShowing(Context context){ if(mLoadingDialog == null){ int mResGetPbSize = onDpToPixel(120,context); mLoadingDialog = new Dialog(context, R.style.style_loading_dialog); ProgressBar pb = new ProgressBar(context); LayoutParams params = new LayoutParams(mResGetPbSize,mResGetPbSize); mLoad..
String a = "aaa"; String b = "bbb"; TextView.setText(Html.fromHtml(a+b)); 이런식으로 HTML태그를 안드로이드에 적용 할 수 있다. 응용법은 텍스트뷰뿐만 아니라 다른곳에서도 활용하기 나름. 저대로 실행시킨다면, 해당 텍스트뷰의 텍스트는 aaabbb 이런식으로..
private JSONArray mJsonArray = null; . . . try { JSONObject mJsonObj = new JSONObject(str); //Json형식의 데이터가 담겨있는 스트링 mJsonArray = mJsonObj.getJSONArray("result"); for(int i=0;i
class mAsync extends AsyncTask{ @Override protected String doInBackground(String... params) { MLog.d("Entered, DoInBackground"); String strUri = params[0]; BufferedReader mBufferedReader = null; try { String strJson; URL mUrl = new URL(strUri); HttpURLConnection mHttpURLConnection = (HttpURLConnection) mUrl.openConnection(); StringBuilder mStringBuilder = new StringBuilder(); mBufferedReader = n..