[android : kotlin] 코틀린 커스텀 리스트 뷰( Custom ListView ) 사용 예제
리스트뷰(ListView)는 여러 항목들을 제공하고, 스크롤 가능한 항목을 나타낼 때 사용되는 뷰 그룹이다. ListView에 먼저 View를 배치 후 데이터를 View의 형식에 맞게 변환하여 가져온다. 리스트뷰를 구성하기...
[android : kotlin] 코틀린 리스트 뷰(ListView) 사용 예제
리스트뷰(ListView)는 여러 항목들을 제공하고, 스크롤 가능한 항목을 나타낼 때 사용되는 뷰 그룹이다. ListView에 먼저 View를 배치 후 데이터를 View의 형식에 맞게 변환하여 가져온다. 리스트뷰를 구성하기...
[국민건강보험] 건강보험 피부양자 등록 여부 조회 확인 : 배우자를 피부양자로 등록하였으나 건강보험 고지서가 날라왔다.
한국으로 귀국 후 와이프와 나는 무직인 관계로 가장 빠른 처리가 필요했던 부분이 바로 건강보험료 납부였다. 와이프도 건강보험료를 납부해야할 것이고, 나 또 한 납부해야하는 상황이 올...
[미리 대응하세요] 구글 플레이 개발자 프로그램 정책 업데이트 발표(2021년 10월 27일)
다음 정책이 업데이트됩니다. 달리 명시되지 않는 한 다음 변경사항을 준수할 수 있도록 2021년 10월 27일부터 최소 30일 동안 모든 신규 앱 및 기존 앱에 유예...
[android : kotlin] 코틀린 SeekBar사용 예제
SeekBar에서 가장많이 사용되는 속성은 3가지 이다. 그중에 style 속성은 SeekBar의 모양을 설정할 수 있다. progress 속성은 현재값을 의미하며, max 속성은 프로그래스 바의 최대값을 지정한다. 프로그래스...
[android : kotlin] 코틀린 제너릭(Generic) 사용 방법 및 예제
코틀린도 자바와 같이 제너릭을 지원한다. 제너릭은 클래스나 함수를 생성할 때 타입을 정하지 않는 것을 의미한다. 그렇기 때문에 타입이 다른 종류의 여러 개의 클래스를 정의하지 않아도...
[android : kotlin] 코틀린 프로그래스 바(Progress Bar)사용 예제
Progress Bar는 사용자에게 오래 걸리는 작업이 있을 경우 작업 중임을 표시하기위해 사용하는 뷰이다. 프로그래스 바에서 가장많이 사용되는 속성은 3가지 이다. 그중에 style 속성은 프로그래스 바의...
[android : kotlin] 코틀린 foreach 반복문 사용방법 및 예제
■for문 선언방법 코틀린에서는 in 키워드를 사용한다. 자바언어에서 처럼 for (int i = 1; i <= 5; i++) { … } 사용하게되면 오류가 발생된다. 코틀린에서는 자바와...
[android : kotlin] 코틀린 범위(range) 연산자 in 사용방법 및 예제
■if문에서 in사용방법 :변수명 in 시작값..마지막값 score in 80.0..89.9는 80.0부터 89.9까지에 범위를 나타낸다. fun main() { print("Enter the score: ") //val score = readLine()!!.toDouble() // 콘솔로부터...
[android : kotlin] 코틀린 중위 함수(infix) 생성 및 사용 방법
클래스의 멤버 호출 시 사용하는 점(.)을 생략하고 함수 이름 뒤에 소괄호를 생략해 직관적인 이름을 사용하여 표현하는 방법으로 중위 함수가 되려면 3가지 조건이 있다. 첫번째로 멤버...