'분류 전체보기'에 해당되는 글 23건
- 2021.05.22 로보카 폴리 소방 안전 이야기
- 2021.04.09 맥 기본 컨트롤
- 2021.03.30 All students must be equipped with...one standard size two pewter cauldron
- 2021.03.30 윈도우 파이썬 버전 변경 방법
- 2021.03.29 윈도우 단축기 (Hot Key)
- 2021.03.24 Write your first program in Kotlin
- 2021.03.24 Layout/Widjet/Drawable 01
- 2021.03.24 안드로이드 스튜디오 삭제 및 기본 설정
- 2021.03.17 유폴더 YouFolder
- 2021.03.17 He'll be under the finest headmaster that Hogwarts has ever seen, Albus Dumbledore.
2021-03-30
Harry: All students must be equipped with...one standard size two pewter cauldron
equip 장비를 갖추다, 준비를 갖춰주다
pewter 백랍, 땜납
cauldron 가마솥, 냄비, 밥을 짓거나 물을 끓이는 데 사용되는 취사도구 ( pot? )
'학습 > 해리포터' 카테고리의 다른 글
He'll be under the finest headmaster that Hogwarts has ever seen, Albus Dumbledore. (0) | 2021.03.17 |
---|
fun main() {
println("Hello, world!")
}
fun은 함수를 의미
요약
- https://developer.android.com/training/kotlinplayground는 웹에서 Kotlin 프로그램 작성을 연습할 수 있는 대화형 코드 편집기
- 모든 Kotlin 프로그램에는 다음과 같이 main() 함수가 있어야 함. fun main() {}
- println() 함수를 사용하여 텍스트를 출력함
- 출력할 텍스트를 큰따옴표 사이에 입력. 예: "Hello"
- println() 명령을 반복하여 여러 줄의 텍스트 인쇄
- 프로그램에서 오류는 빨간색으로 표시.
출력 창에는 오류가 발생한 위치와 원인을 파악할 수 있는 오류 메시지가 표시됨
ConstraintLayout (제약 레이아웃)
- 위젯이 어느 것과 연결되어 있는지 명시를 해줘야 함
- 연결 점, 연결 선
- 연결 점과 연결 선을 이용해서 화면을 배치하는 레이아웃
- 가이드 선
- 추가하여, 연결할 수 있음
- convert view
- 마우스 우클릭 메뉴로 다른 레이아웃으로 변경
- dp
- 밀도 독립적 픽셀
- 해상도에 따라 픽셀 수가 다른데, 그에 맞게 맞춰 줌
- px는 절대 픽셀
Button layout_gravity
- gravity 중력
- 책받침, 철가루
- 자석을 따라감
- 정렬을 의미함
- 다른 언어의 Alignment
- center
- 가로 세로 모두 가운데
- center_horizontal
- 가로 센터
- 뷰 자체의 속성
- 버튼의 위치
Button gravity
- layout_가 아니면, 뷰 안에서의 속성
- 버튼 안의 텍스트의 위치
Button textSize
- 글자 크기는 sp를 권장함
- 30
LinearLayout baselineAligned
- true
- 텍스트를 기준으로 뷰들을 배치해줌
- 세 개 버튼의 "텍스트를 기준으로" 같은 라인 상 배치
LinearLayout 공간 분할
- weight
- 여유 공간을 분할해서 배치
- 정확히 3분할 방법
- 각 버튼의 layout_height를 0dp로 함
- 각 버튼의 layout_weight를 1로 함
- 정확히 3분할해서 배치
- 4:1:1로 분할 방법
- 각 버튼의 layout_height를 0dp로 함
- 버튼 1은 layout_weight 4
- 버튼 2는 layout_weight 1
- 버튼 3은 layout_weight 1
RelativeLayout
- 버튼 1 (id: button)
- layout_alignParentTop true
- 버튼 2 (id: button2)
- layout_alignParentBottom true
- 버튼 3
- layout_below @id/button
- layout_above @id/button2
FrameLayout
- 위 쪽
- 버튼
- 아래 쪽
- 이미지 두개를 번갈아 보도록 함
- 이미지 파일 위치
- res/drawable
- 탐색기에서 Ctrl+C, 스튜디오의 res/drawable로 Ctrl+V
- 배치
- LinearLayout
- Button 상단 배치 "이미지 바꾸기"
- Layouts/FrameLayout을 하단 배치
- ImageView를 FrameLayout에 추가
- imageView.setVisibility(View.VISIBLE)
- imageView2.setVisibility(View.INVISIBLE)
'코딩 > Android' 카테고리의 다른 글
안드로이드 스튜디오 삭제 및 기본 설정 (0) | 2021.03.24 |
---|
안드로이드 스튜디오 클린 삭제
- c:\Program Files\Android\Android Studio 로 이동
- uninstall.exe 실행
- c:\Users\<사용자계정폴더>\AppData\Local\Android\Sdk 폴더 삭제
기본 설정
- 글자 크기 바꾸기
- File -> Settings -> Editor
- -> Font
- "Consola", 13
- 자동 임포트
- File -> Settings -> Editor
- -> General
- -> Auto Import
- 체크 Add unambiguous imports on the fly
- 체크 optimize imports on the fly
기본 XML UI
- 버튼 넣기
- 자석 활성화 (auto connection)
- RelativeLayout에서 버튼 위치 중심에 위치 시키기
- 버튼의 좌우 상하 점을 다른 버튼 또는 화면의 가장자리로 끌어 연결
'코딩 > Android' 카테고리의 다른 글
Layout/Widjet/Drawable 01 (0) | 2021.03.24 |
---|
유튜브 동영상 유폴더에 담기
1단계 유튜브에서 동영상 고르기 -> 공유
2단계 공유 앱에서 유폴더 선택
3단계 유폴더에서 폴더 선택 또는 폴더 생성하여 선택 후 [확인] 터치
예) "음악" 및 "자장가" 폴더 생성하고 [확인] 터치
4단계 동영상 시청
와이파이가 아닌 데이터 사용 시, 해상도 조절하여 시청
갤러리 사진 유폴더에 담기
1. 갤러리에서 사진 및 동영상 하나 또는 복수 개 선택 -> 공유 선택 -> 유폴더 선택
2. 유폴더에서 폴더 선택 후 확인 (또는 폴더 생성하여 선택 후 확인)
네이버 사이트 유폴더에 담기
1. 네이버 또는 브라우저에서 사이트 이동 -> 공유 선택 -> 유폴더 선택
2. 유폴더에서 폴더 선택 후 확인 (또는 폴더 생성하여 선택 후 확인)
즐겨 찾는 링크
파트너스 활동을 통해 일정액의 수수료를 제공받을 수 있음
Harry Potter
00:15:52.801 ~ 00:15:59.368 "Dear Mr. Potter, We are pleased to inform you that you have been accepted at Hogwarts School of Witchcraft and Wizardry."
Uncle
00:15:59.574 ~ 00:16:04.534 He will not be going, I tell you! We swore when we took him in we'd put a stop to all this rubbish!
Harry Potter
00:16:04.746 ~ 00:16:08.978 You knew? You knew all along and you never told me?
Aunt
00:16:09.184 ~ 00:16:12.278 Of course we knew. How could you not be?
00:16:12.487 ~ 00:16:16.218 My perfect sister being who she was.
00:16:16.424 ~ 00:16:22.363 My mother and father were so proud the day she got her letter.
00:16:22.564 ~ 00:16:26.728 "We have a witch in the family. Isn't it wonderful?"
00:16:26.935 ~ 00:16:30.598 I was the only one to see her for what she was.
00:16:30.805 ~ 00:16:32.534 A freak!
S0:16:32.741 ~ 00:16:41.675 And then she met that Potter, and then she had you and I knew you would be the same. Just as strange, just as abnormal.
00:16:41.883 ~ 00:16:46.911 And then if you please, she went and got herself blown up, and we got landed with you.
Harry Potter
00:16:47.122 ~ 00:16:51.115 Blown up? You told me my parents died in a car crash.
00:16:51.326 ~ 00:16:55.660 A car crash? A car crash killed Lily and James Potter?
00:16:59.934 ~ 00:17:02.459 He'll not be going.
Rubeus Hagrid
00:17:02.671 ~ 00:17:05.970 Oh, and I suppose a great muggle like yourself is gonna stop him, are ya?
00:17:06.174 ~ 00:17:07.163 Muggle?
00:17:07.509 ~ 00:17:11.536 Non-magic folk. This boy's had his name down ever since he were born.
00:17:11.746 ~ 00:17:15.648 One of the finest school of witchcraft and wizardry in the world. And,
(2021-03-17 수)
00:17:15.850 ~ 00:17:21.720 He'll be under the finest headmaster that Hogwarts has ever seen, Albus Dumbledore.
'학습 > 해리포터' 카테고리의 다른 글
All students must be equipped with...one standard size two pewter cauldron (0) | 2021.03.30 |
---|