※ 협력하여 과제를 해결해 나가는 것을 허용합니다.
협력하여 과제를 제출하신 분은 꼭 이름을 같이 올려 주세요.
(과제 제출 대상자는 이송우, 정유리, 유재명, 노은상, 류지연 입니다.)
※ 기간은 꼭 엄수해 주세요.
※ 과제의 문의는 언제나 가능합니다.
하지만 과제 자체의 질문은 절대 사절합니다.
적극적으로 해결바랍니다.
1. 순수 View를 상속 받아서 간단한 custom widget을 하나 개발해 보세요.
기간 : 2월 16일까지
제출물 : 소스
외형은 아래와 같습니다.
| 0 |
1) 위의 화면을 터치하면 숫자가 하나씩 증가하도록 하세요.
2) 터치를 길게 누르면 숫자가 서서히 빠르게 증가하도록 해 주세요.
3) 해당 widget의 크기에 따라 해당 카운트 Text 크기도 비례해서 크게 확대해 주세요.
2. gravity 혹은 layout_gravity 속성 값중
추가적으로 아래의 값을 조사하여 상세 보고서를 써 주세요.
기간 : 2월 14일까지
제출물 : 제가 강의 자료를 만든것 처럼 최대한 예제와 설명을 상세히 달아주세요. 즉 설명문서
예제 소스
fill_horizontal
fill_vertical
fill
clip_horizontal
clip_vertical
3. 아래의 View 기본 속성에 대해서 조사해서 보고서를 써 주세요.
총 45 개
기간
1~15번 : 2월 16일까지
16~30번 : 2월 21일까지
31~45번 : 2월 24일까지
제출물 : 제가 강의 자료를 만든것 처럼 최대한 예제와 설명을 상세히 달아주세요. 즉 설명문서
예제 소스
| XML Attributes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1. android:background | setBackgroundResource(int) | A drawable to use as the background. | |||||||||
| 2. android:clickable | setClickable(boolean) | Defines whether this view reacts to click events. | |||||||||
| 3. android:contentDescription | setContentDescription(CharSequence) | Defines text that briefly describes content of the view. | |||||||||
| 4. android:drawingCacheQuality | setDrawingCacheQuality(int) | Defines the quality of translucent drawing caches. | |||||||||
| 5. android:duplicateParentState | When this attribute is set to true, the view gets its drawable state (focused, pressed, etc.) from its direct parent rather than from itself. | ||||||||||
| 6. android:fadingEdge | setVerticalFadingEdgeEnabled(boolean) | Defines which edges should be fadeded on scrolling. | |||||||||
| 7. android:fadingEdgeLength | getVerticalFadingEdgeLength() | Defines the length of the fading edges. | |||||||||
| 8. android:filterTouchesWhenObscured | setFilterTouchesWhenObscured(boolean) | Specifies whether to filter touches when the view's window is obscured by another visible window. | |||||||||
| 9. android:fitsSystemWindows | Boolean internal attribute to adjust view layout based on system windows such as the status bar. | ||||||||||
| 10. android:focusable | setFocusable(boolean) | Boolean that controls whether a view can take focus. | |||||||||
| 11. android:focusableInTouchMode | setFocusableInTouchMode(boolean) | Boolean that controls whether a view can take focus while in touch mode. | |||||||||
| 12. android:hapticFeedbackEnabled | setHapticFeedbackEnabled(boolean) | Boolean that controls whether a view should have haptic feedback enabled for events such as long presses. | |||||||||
| 13. android:id | setId(int) | Supply an identifier name for this view, to later retrieve it with View.findViewById() or Activity.findViewById(). | |||||||||
| 14. android:isScrollContainer | Set this if the view will serve as a scrolling container, meaing that it can be resized to shrink its overall window so that there will be space for an input method. | ||||||||||
| 15. android:keepScreenOn | setKeepScreenOn(boolean) | Controls whether the view's window should keep the screen on while visible. | |||||||||
| 16. android:longClickable | setLongClickable(boolean) | Defines whether this view reacts to long click events. | |||||||||
| 17. android:minHeight | Defines the minimum height of the view. | ||||||||||
| 18. android:minWidth | Defines the minimum width of the view. | ||||||||||
| 19. android:nextFocusDown | setNextFocusDownId(int) | Defines the next view to give focus to when the next focus is FOCUS_DOWN If the reference refers to a view that does not exist or is part of a hierarchy that is invisible, a RuntimeException will result when the reference is accessed. | |||||||||
| 20. android:nextFocusLeft | setNextFocusLeftId(int) | Defines the next view to give focus to when the next focus is FOCUS_LEFT. | |||||||||
| 21. android:nextFocusRight | setNextFocusRightId(int) | Defines the next view to give focus to when the next focus is FOCUS_RIGHT If the reference refers to a view that does not exist or is part of a hierarchy that is invisible, a RuntimeException will result when the reference is accessed. | |||||||||
| 22. android:nextFocusUp | setNextFocusUpId(int) | Defines the next view to give focus to when the next focus is FOCUS_UP If the reference refers to a view that does not exist or is part of a hierarchy that is invisible, a RuntimeException will result when the reference is accessed. | |||||||||
| 23. android:[안내]태그제한으로등록되지않습니다-xx[안내]태그제한으로등록되지않습니다-xx[안내]태그제한으로등록되지않습니다-xx[안내]태그제한으로등록되지않습니다-xxonClick | Name of the method in this View's context to invoke when the view is clicked. | ||||||||||
| 24. android:padding | setPadding(int,int,int,int) | Sets the padding, in pixels, of all four edges. | |||||||||
| 25. android:paddingBottom | setPadding(int,int,int,int) | Sets the padding, in pixels, of the bottom edge; see padding. | |||||||||
| 26. android:paddingLeft | setPadding(int,int,int,int) | Sets the padding, in pixels, of the left edge; see padding. | |||||||||
| 27. android:paddingRight | setPadding(int,int,int,int) | Sets the padding, in pixels, of the right edge; see padding. | |||||||||
| 28. android:paddingTop | setPadding(int,int,int,int) | Sets the padding, in pixels, of the top edge; see padding. | |||||||||
| 29. android:saveEnabled | setSaveEnabled(boolean) | If unset, no state will be saved for this view when it is being frozen. | |||||||||
| 30. android:scrollX | The initial horizontal scroll offset, in pixels. | ||||||||||
| 31. android:scrollY | The initial vertical scroll offset, in pixels. | ||||||||||
|
|
Defines whether the horizontal scrollbar track should always be drawn. | ||||||||||
|
|
Defines whether the vertical scrollbar track should always be drawn. | ||||||||||
|
|
Defines the delay in milliseconds that a scrollbar waits before fade out. | ||||||||||
| 35. android:scrollbarFadeDuration | Defines the delay in milliseconds that a scrollbar takes to fade out. | ||||||||||
| 36. android:scrollbarSize | Sets the width of vertical scrollbars and height of horizontal scrollbars. | ||||||||||
| 37. android:scrollbarStyle | Controls the scrollbar style and position. | ||||||||||
| 38. android:scrollbarThumbHorizontal | Defines the horizontal scrollbar thumb drawable. | ||||||||||
| 39. android:scrollbarThumbVertical | Defines the vertical scrollbar thumb drawable. | ||||||||||
| 40. android:scrollbarTrackHorizontal | Defines the horizontal scrollbar track drawable. | ||||||||||
| 41. android:scrollbarTrackVertical | Defines the vertical scrollbar track drawable. | ||||||||||
| 42. android:scrollbars | Defines which scrollbars should be displayed on scrolling or not. | ||||||||||
| 43. android:soundEffectsEnabled | setSoundEffectsEnabled(boolean) | Boolean that controls whether a view should have sound effects enabled for events such as clicking and touching. | |||||||||
| 44. android:tag | Supply a tag for this view containing a String, to be retrieved later with View.getTag() or searched for with View.findViewWithTag(). | ||||||||||
| 45. android:visibility | |||||||||||