반응형 분류 전체보기63 DialogRadio public void DialogRadio() { final CharSequence[] _arr = { "자바", "안드로이드", "이클립스","구글" }; AlertDialog.Builder _alert = new AlertDialog.Builder(this); _alert.setIcon(R.drawable.ic_launcher); _alert.setTitle("타이틀"); _alert.setSingleChoiceItems(_arr, -1, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int item) { Toast.makeText(getApplicationContext(), _arr[item], .. 2019. 3. 20. 깜빡이기 Button btnNotice = (Button)findViewById(R.id.btn_notice); Animation mAnimation = new AlphaAnimation(1, 0); mAnimation.setDuration(1000); mAnimation.setInterpolator(new LinearInterpolator()); mAnimation.setRepeatCount(Animation.INFINITE); mAnimation.setRepeatMode(Animation.REVERSE); //애니메이션 시작 btnNotice.startAnimation(mAnimation); btnNotice.setOnClickListener(new OnClickListener() { @Override pub.. 2019. 3. 19. edittext 에 null또는 공백체크 TextUtils.isEmpty(edittext) public static boolean isEmpty(@Nullable CharSequence str) { if (str == null || str.length() == 0) return true; else return false; } 2019. 3. 19. edittext 에 null또는 공백체크 TextUtils.isEmpty(edittext) public static boolean isEmpty(@Nullable CharSequence str) { isEmpty if (str == null || str.length() == 0) return true; else return false; } 2019. 3. 19. 이전 1 ··· 9 10 11 12 13 14 15 16 다음 반응형