dailyrecord(1)
1. 생각해보니 글만큼 기억에 오래 남는 것이 없다. 지금은 진행중인 개발을 위해서 공부하지만, 그때마다 쌓은 지식이 사라지지 않게 하기 위해서 이 곳에 적어두려 한다.
2. 지금은 custom calendar을 완성하는 것을 목표로 하고 있다.
참고: https://www.toptal.com/android/android-customization-how-to-build-a-ui-component-that-does-what-you-want
3. 첫번째 목표: interacting with the component
1-1)error: Object() in Object cannot be applied to (Object.context.Context)
1-2)solution:

2-1)problem with extending linearlayout

2-2)solution: 강제 형 변환을 해주지 않았음

3)Creating Custom Views
안드로이드에서 제공되는
ViewGroup classes: Linear Layout,Relative Layout,Grid View,List View...
View classes: Button, EditText, ImageView...
위의 예시와 같은 viewgroup class대신 custom calendar을 위한 새로운 view 생성
문제: CalendarView의 생성자 log값이 출력되지 않는다
이유: 3개의 생성자에 log를 넣어주지 않고 한 개의 생성자에만 넣어줌
3개의 생성자에 넣어 보니 실행되는 로그 발견
행동 제시: 앞으로 모든 생성자 및 함수에 log취해서 시간 낭비 줄이자
참고: https://code.tutsplus.com/tutorials/creating-compound-views-on-android--cms-22889
4)inteface-handler
참고: https://www.toptal.com/android/android-customization-how-to-build-a-ui-component-that-does-what-you-want
4-1)interface에 대한 이해 필요
5)SimpleCursorAdapter
5-1)cursor가 null인 경우는 언제지
6)SimpleCursorAdapter에서 CursorAdapter로 변경
참고: https://github.com/codepath/android_guides/wiki/Populating-a-ListView-with-a-CursorAdapter
7.sql
7-1)Query함수보다 rawQueary함수가 가독성이 좋은듯
7-2)함수를 볼 때 처음에 혼란스러우면 선 이해 후 암기!!!
***남은 숙제들 미리 적어놓기
- 내용 적은 후 화면 터치하면 키보드 없어지도록
참고: https://www.w3schools.com/sql/sql_and_or.asp (sql문법)
https://neurobin.org/docs/android/android-date-picker-example/ (datepicker dialog관련 참고내용)
https://www.androidhive.info/2013/09/android-sqlite-database-with-multiple-tables/ (database-multiple tables)
2. 지금은 custom calendar을 완성하는 것을 목표로 하고 있다.
참고: https://www.toptal.com/android/android-customization-how-to-build-a-ui-component-that-does-what-you-want
3. 첫번째 목표: interacting with the component
1-1)error: Object() in Object cannot be applied to (Object.context.Context)
![]() |
-reason: super try to invoke the super class. I'm inheriting from Object which, has no such constructor |
1-2)solution:

2-1)problem with extending linearlayout

2-2)solution: 강제 형 변환을 해주지 않았음

3)Creating Custom Views
안드로이드에서 제공되는
ViewGroup classes: Linear Layout,Relative Layout,Grid View,List View...
View classes: Button, EditText, ImageView...
위의 예시와 같은 viewgroup class대신 custom calendar을 위한 새로운 view 생성
문제: CalendarView의 생성자 log값이 출력되지 않는다
이유: 3개의 생성자에 log를 넣어주지 않고 한 개의 생성자에만 넣어줌
3개의 생성자에 넣어 보니 실행되는 로그 발견
행동 제시: 앞으로 모든 생성자 및 함수에 log취해서 시간 낭비 줄이자
참고: https://code.tutsplus.com/tutorials/creating-compound-views-on-android--cms-22889
4)inteface-handler
참고: https://www.toptal.com/android/android-customization-how-to-build-a-ui-component-that-does-what-you-want
4-1)interface에 대한 이해 필요
5)SimpleCursorAdapter
5-1)cursor가 null인 경우는 언제지
6)SimpleCursorAdapter에서 CursorAdapter로 변경
참고: https://github.com/codepath/android_guides/wiki/Populating-a-ListView-with-a-CursorAdapter
7.sql
7-1)Query함수보다 rawQueary함수가 가독성이 좋은듯
7-2)함수를 볼 때 처음에 혼란스러우면 선 이해 후 암기!!!
***남은 숙제들 미리 적어놓기
- 내용 적은 후 화면 터치하면 키보드 없어지도록
참고: https://www.w3schools.com/sql/sql_and_or.asp (sql문법)
https://neurobin.org/docs/android/android-date-picker-example/ (datepicker dialog관련 참고내용)
https://www.androidhive.info/2013/09/android-sqlite-database-with-multiple-tables/ (database-multiple tables)

댓글
댓글 쓰기