
0. 안드로이드 스튜디오 Flutter 앱 생성 (server_test) 1. AWS EC2 인스턴스 생성 1) AWS 콘솔에서 EC2 인스턴스를 생성합니다. (인스턴스 시작 클릭) - 운영 체제는 Ubuntu 20.04 LTS 또는 최신 버전을 선택합니다. - 키페어 추가 및 저장 (새 키 페어 생성 클릭) - 생성된 .pem 파일 flutter app directory에 옮김 (중요) - 보안그룹, 스토리지 설정 2) 보안 그룹 생성 (보안 그룹 클릭) - 보안 그룹 생성 클릭 - 보안그룹 생성 . 3) 보안 그룹 연결 - 인스턴스 클릭 - 보안 - 보안그룹 변경 클릭 -보안 그룹 선택 클릭 후 - 자신이 만든 보안 그룹 선택 (여기서는 server_test_group) 여기까지 p..
코틀린에서 순열을 구하는 방법. 1. 순열의 개념순열이란 순서에 상관있는 배열을 말합니다. 예를 들어, 숫자 배열 [1, 2, 3]에서 순열을 구하면 다음과 같은 모든 조합이 나옵니다:[1, 2, 3][1, 3, 2][2, 1, 3][2, 3, 1][3, 1, 2][3, 2, 1]이런 조합들을 구하는 것이 순열. fun getPermutations(arr: MutableList, depth: Int, n: Int, result: MutableList>) { if (depth == n) { result.add(arr.toList()) // 배열의 복사본을 추가 return } for (i in depth until n) { arr.swap(dept..
xml style activity private fun regionCodeInit() { val regionArray = resources.getStringArray(R.array.license_drop_down_list) val arrayAdapter = ArrayAdapter(this, R.layout.item_license_drop_down, regionArray) binding.autoCompleteTextView.setAdapter(arrayAdapter) binding.autoCompleteTextView.setOnItemClickListener { parent, view, position, id -> when (position) { 0 -> Toast.makeText(this, "Expose..
참고 블로그 https://cishome.tistory.com/270 [flutter] Error (Xcode): ../../../../../.pub-cache/hosted/pub.dev/file-6.1.2/lib/src/interface/file.dart:15:16: Error: The metho 몇 달간 들여다 보지 않았던 flutter 로 프로젝트 연습 하던 내용을 다시 보려고 iphone simulator 로 실행했더니 아래와 같은 에러가 나타났습니다. Error (Xcode): ../../../../../.pub-cache/hosted/pub.dev/file-6.1.2/l cishome.tistory.com 터미널에 입력 1. flutter pub outdated 2. flutter pub up..
전에 포스팅 했던 ScrollView 의 방향을 활용해서 응용할 수 있는 코드를 포스팅 하겠습니다. 활용 내용은 특정 위치를 계산해서 스크롤이 그 특정 뷰 보다 내려가는지 올라가는지 활용하는 것이 목표입니다. 특정 뷰의 좌표를 알 수 있는 방법으로 getLocationOnScreen 을 활용한다. val location = IntArray(2) // Array를 준비. textView.getLocationOnScreen(location) val x = location[0] // textView 의 x 값 val y = location[1] // textView 의 y 값 이제 응용한다면 내려가면서 특정 뷰의 위치를 지날 때와 , 올라가면서 특정 뷰의 위치를 지날때를 분기로 처리할 수 있다. scrollV..
안드로이드에서 흔히 쓰이는 StatusBar 색상 변경 코드이다. window.statusBarColor = ContextCompat.getColor(this.context, color) // StatusBar 색상 변경 여기에 더해서 StatusBar 아이콘들의 색상을 흰색 또는 검정색으로 바꾸는 코드가 있다. StatusBar 를 흰색으로 지정해서 아이콘이 안보일 시 사용할 수 있다. val window = window val decorView = window.decorView val wic = WindowInsetsControllerCompat(window, decorView) wic.isAppearanceLightStatusBars = bool // true 면 검정색 false 면 흰색이 된다...
- Total
- Today
- Yesterday
- GitHub
- java
- Firebase
- android
- Hilt
- Crop
- https
- API
- Android Studio
- app bundle
- ios
- node.js
- flutter_new_badger
- retrofit
- 알고리즘
- ScrollView
- listener
- Custom
- message
- Kotlin
- Flutter
- 코딩테스트
- FCM
- error
- Token
- ec2
- direction
- bitmap
- ExoPlayer
- 재귀함수
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |