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..
![](http://i1.daumcdn.net/thumb/C148x148.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/lsGmx/btrENe6xCDT/o0mG8R460zu3rfu12xCcY1/img.png)
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
- logcat
- android studio
- andorid
- 웹뷰
- logtag
- 영문 키보드
- Inputmode
- simpleName
- StringWriter
- javaClass
- kotlin
- 안드로이드
- custom web view
- create project
- screenorientation
- defaultInputmode
- 외부 브라우저
- Android
- web view settings
- 로그캣
- permissions
- create new project
- web view
- 클래스 이름
- new project
- 화면 방향 고정
- 코틀린
- check permissions
- 화면 고정
- web chrome view
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |