val soundUri = Uri.parse(ContentResolver.SCHEME_ANDROID_RESOURCE + "://" + applicationContext.packageName + "/" + R.raw.d39push1) val notificationBuilder = NotificationCompat.Builder(this, channelId) .setSound(soundUri) if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { val importance = NotificationManager.IMPORTANCE_DEFAULT val notificationChannel = NotificationChannel(channelId, "Notice", i..
let alertTitleStr = "alert title" let alertMessageStr = "alert message" let actionStr = "action" let cancelStr = "cancel" let destructiveStr = "destructive" let alert = UIAlertController(title: alertTitleStr, message: alertMessageStr, preferredStyle: .alert) alert.addAction(UIAlertAction(title: actionStr, style: .default, handler: { UIAlertAction in print(actionStr) })) alert.addAction(UIAlertAc..
let number = 300 switch number { case 100 : print("백", "number = \(number)", separator: ", ") case 200 : print("이백", "number = \(number)", separator: ", ") case 300 : print("삼백", "number = \(number)", separator: ", ") case 400 : print("사백", "number = \(number)", separator: ", ") case 500 : print("오백", "number = \(number)", separator: ", ") case 600, 700, 800, 900 : print("육백, 칠백, 팔백, 구백", "numbe..
enum characters : Character { case a = "A" // a, raw value : A case b = "B" // b, raw value : B case c = "C" // c, raw value : C case d // error : Enum cases require explicit raw values when the raw type is not expressible by integer or string literal } enum strings : String { case a = "A" // a, raw value : A case b // b, raw value : b case c = "C" // c, raw value : C }
android:maxLines="1" android:ellipsize="end"
run command + r add editor on right control + command + t
// closure - sort import UIKit var sports = ["foot ball", "tenis", "table tenis", "wrestle", "base ball"] sports.sort { $0 $1 } print(sports) // result : ["wrestle", "tenis", "table tenis", "foot ball", "base ball"] sports.sort (by : { $0 < $1 }) print(sports) // result : ["base ball..
- Total
- Today
- Yesterday
- StringWriter
- android studio
- defaultInputmode
- 화면 방향 고정
- web chrome view
- create new project
- andorid
- 로그캣
- 안드로이드
- permissions
- 영문 키보드
- custom web view
- Android
- screenorientation
- new project
- 웹뷰
- 외부 브라우저
- logtag
- simpleName
- 화면 고정
- kotlin
- javaClass
- create project
- 클래스 이름
- logcat
- web view settings
- web view
- Inputmode
- check permissions
- 코틀린
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |