일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
- LayoutEditor
- Constraint
- Android
- gradle
- SWIFT
- linearlayout
- 안드로이드
- 데이터바인딩
- InputTypes
- 앱빌드
- API Level
- ios
- DataBinding
- EditText
- xcworkspace
- 리소스
- kotlin
- Drawable
- 코코아팟
- lateInit
- 액티비티
- cocoapods
- 프로젝트생성
- Lottie
- button
- 스택관리
- ImageView
- 화면전환
- 코틀린
- 프래그먼트
- Today
- Total
목록[Android] (15)
코코아의 우당탕탕 개발일지
LiveData 알아보기! https://developer.android.com/codelabs/kotlin-android-training-live-data?index=..%2F..android-kotlin-fundamentals&utm_source=developer.android.com&utm_medium=referral#0 LiveData란? - 수명 주기를 인식하는 관찰 가능한 데이터 홀더 클래스 LiveData의 특성 관찰가능함 -> LiveData 객체가 보유한 데이터가 변경되면 관찰자에게 알림 데이터를 보유함 -> LiveData는 모든 데이터와 함께 사용할 수 있는 wrapper이다 생명 주기를 인식함 -> 옵저버를 LiveData에 연결하면 옵저버가 LifecycleOwner(액티비티나 프..

뷰 모델 써보기!! Android Kotlin Fundamentals: 5.1 ViewModel | Android Developers In this codelab, you learn how to use ViewModel to enable data to survive configuration changes such as screen rotations in your Android Kotlin app. developer.android.com 어떨 때 사용? 수명주기를 고려한 방식으로 UI와 관련된 데이터를 저장할 때! ViewModelFactory 클래스를 사용해서 뷰 모델 객체를 인스턴스화하고 반환함! 구성 변경 후에도 살아남도록!! 앱 상태 저장하기 지난 코드랩에서 다뤘던 onSaveInstanceStat..

함수 기능 onCreate() 최초로 앱을 실행할 때 호출되는 함수 생명주기 호출시기 onStart() 액티비티가 사용자에게 보여지기 전에 호출되는 함수 onResume() 액티비티가 실제 사용자와 상호작용할 수 있는 포그라운드에 위치하면 호출되는 함수 onPause() 액티비티 실행 중 사용자와 상호작용이 불가능한(포커스를 잃은) 상태에서 호출되는 함수 onStop() 액티비티가 완전히 가려져 사용자에게 더 이상 보이지 않을 때 호출되는 함수 onDestroy() 액티비티나 앱 프로세스 자체가 종료되면 호출되는 함수 onRestart() 화면이 가려졌다가 다시 돌아왔을 때에만 호출되는 함수 onCreate() : 최초 실행 시에만 해줘야 하는 작업들 Data Binding, View 생성, setCon..

학습과정 3번에서의 게임 결과를 다른 앱으로 보내고 친구와 공유해보자. Android Kotlin Fundamentals: 03.3 Start an external Activity | Android Developers In this codelab, you learn how to pass parameters to a Fragment using safe args to make debugging your app easier, and how to invoke an external Activity in an app. developer.android.com Bundle key - value 형태의 저장소. directory 또는 associative array라고도 불림 고유 키(문자열)를 사용하여 해당 키와 관련..

이번에 알아볼 내용은 프레그먼트간의 화면 전환을 쉽게 해주는 네비게이션이다. Android Kotlin Fundamentals: 03.2 Define navigation paths | Android Developers Learn how to use Android Studio’s Navigation Editor to define the flows (navigation paths) through your app. You will understand how to implement an Up button, add an options menu, and create a navigation drawer for your app. developer.android.com The Navigation component is ..

그동안은 계속 액티비티인 MainActivity만 다뤘었는데 이번 시간에는 앱에서 빼놓을 수 없는 Fragment를 알아보도록 하겠다. Android Kotlin Fundamentals: Create a fragment | Android Developers In this codelab, you learn how to create a fragment and add it to an app. developer.android.com 템플릿 살펴보기 위 안드로이드 디벨로퍼 문서로 가면 이번 실습에 필요한 템플릿을 다운받을 수 있는 링크가 나온다. 실행해주었을 때는 이렇게 빈 화면만 나온다. xml 파일 레이아웃은 다 제공되어 있어서 이를 코틀린 파일과 연결하기만 하면 될 것 같다.

이번에 알아볼 내용은~ 이름부터 무서운 "뷰 모델"이다. 이름은 많이 들어봤지만 당최 무슨 얘기인지는 모르겠던 뷰모델!! MVVM을 사용하라고 했지만 Model-View-ViewModel이 무엇인지 이해하는 것부터 막혔던, 바로 그 뷰모델!! 이제부터 알아보도록 하자. https://developer.android.com/codelabs/kotlin-android-training-view-model?index=..%2F..android-kotlin-fundamentals&hl=ko#0 ViewModel ViewModel 클래스는 수명주기를 고려한 방식으로 UI 관련 데이터를 저장하고 관리할 수 있다. 이 뷰모델을 사용했을 때의 장점은 화면 회전, 키보드 이용성 변경 같은 디바이스 구성 변경 후에도 데이터..

이번 시간에 알아볼 것은 findViewById 보다 효율적인 Data Binding을 이용한 뷰의 참조이다. Android Kotlin Fundamentals 02.4: Data binding basics | Android Developers Learn how to use data binding to simplify code for accessing views in your Android app. developer.android.com findViewById 뷰의 계층 구조가 복잡하다면 findViewById로 뷰를 계속 참조하게 될 시 비용이 많이 들고, 앱이 느려진다. Android가 루트에서 시작하여 원하는 보기를 찾을 때까지 보기 계층 구조를 탐색하기 때문이다. 앞선 실습에서는 뷰에서 데이터를 ..