본문 바로가기
728x90
반응형

안드로이드35

[수정] 안드로이드 커스텀 캘린더 사용하기 ( 2 - 클릭한 날짜 표시하기 ) https://gameprograming.tistory.com/124 안드로이드 커스텀 캘린더 사용하기 ( 1 - 주말에 색상 적용하기 ) https://gameprograming.tistory.com/122 안드로이드 스튜디오 커스텀 캘린더뷰 적용하기 안드로이드에서 기본적으로 제공되는 캘린더뷰로는 원하는 방식을 구현하기에 제한이 많았습니다. https://github.com/ gameprograming.tistory.com XML파일을 Drawable폴더에 생성합니다. my_selector.xml xml에서 이미지(square)를 설정(android:drawable="@drawable/square")하고 자바 파일을 생성합니다. ( MySelectorDecorator ) public class MySe.. 2020. 5. 15.
안드로이드 커스텀 캘린더 사용하기 ( 1 - 주말에 색상 적용하기 ) https://gameprograming.tistory.com/122 안드로이드 스튜디오 커스텀 캘린더뷰 적용하기 안드로이드에서 기본적으로 제공되는 캘린더뷰로는 원하는 방식을 구현하기에 제한이 많았습니다. https://github.com/prolificinteractive/material-calendarview prolificinteractive/material-calendarview A M.. gameprograming.tistory.com 커스텀 캘린더뷰를 적용하고 사용해보겠습니다. 자바 파일을 생성합니다. ( SaturdayDecorator ) class SaturdayDecorator implements DayViewDecorator { private final Calendar calendar .. 2020. 5. 15.
안드로이드 스튜디오 커스텀 캘린더뷰 적용하기 안드로이드에서 기본적으로 제공되는 캘린더뷰로는 원하는 방식을 구현하기에 제한이 많았습니다. https://github.com/prolificinteractive/material-calendarview prolificinteractive/material-calendarview A Material design back port of Android's CalendarView - prolificinteractive/material-calendarview github.com 사용하기전에 build.gradle(Project) 에 아래 내용을 추가 합니다. allprojects { repositories { maven { url 'https://jitpack.io' } } } build.gradle(App)에 아래.. 2020. 5. 8.
안드로이드 스튜디오 캘린더 뷰 사용해보기 컴포넌트 트리를 구성하고 캘린더 뷰를 추가합니다. 캘린더 뷰에서 선택한 날짜를 텍스트뷰로 보여주겠습니다. final TextView textView = findViewById(R.id.textView); CalendarView calendarView = findViewById(R.id.calendarView); calendarView.setOnDateChangeListener(new CalendarView.OnDateChangeListener() { @SuppressLint("DefaultLocale") @Override public void onSelectedDayChange(@NonNull CalendarView view, int year, int month, int dayOfMonth) { mont.. 2020. 5. 6.
728x90
반응형