본문 바로가기
728x90
반응형

안드로이드35

안드로이드 핸들러 사용방법과 액티비티 시작하기 Handler handler = new Handler(); handler.postDelayed(new Runnable() { @Override public void run() { finish(); startActivity(new Intent(getApplicationContext(), MainActivity.class)); } }, 1500); // 1.5초후 run의 내용을 실행 액티비티를 실행할때 아래와 같이 사용 할 수도 있습니다. Intent intent = new Intent(getApplicationContext(), MainActivity.class); startActivity(intent); 2020. 10. 24.
안드로이드 커스텀 캘린더 사용하기 ( 4 - 특정 날짜에 점을 표시하기 ) https://gameprograming.tistory.com/126 안드로이드 커스텀 캘린더 사용하기 ( 3 - 오늘 날짜 표시해주기 ) https://gameprograming.tistory.com/125 안드로이드 커스텀 캘린더 사용하기 ( 2 - 클릭한 날짜 표시하기 ) https://gameprograming.tistory.com/124 안드로이드 커스텀 캘린더 사용하기 ( 1 - 주말에 색상 적용.. gameprograming.tistory.com EventDecorator 자바 소스를 추가합니다. public class EventDecorator implements DayViewDecorator { private final int color; private final HashSet dates.. 2020. 8. 13.
안드로이드 프래그먼트 갱신(새로고침) 액티비티에서 프래그먼트 갱신 FragmentTransaction transaction = getSupportFragmentManager().beginTransaction(); transaction.detach(fragment_ability).attach(fragment_ability).commit(); 2020. 7. 28.
안드로이드 액티비티에서 프래그먼트로 값 전달하기 액티비티 Bundle bundle = new Bundle(); bundle.putStringArray("name", list_name); bundle.putStringArray("value", list_value); fragment_ability.setArguments(bundle); 프래그먼트 if (getArguments() != null) { name = getArguments().getStringArray("name"); value = getArguments().getStringArray("value"); } 2020. 7. 28.
728x90
반응형