[SwiftUI] 레이아웃 배치 스택(HStack,VStack,ZStack) 기본 사용 방법 (뷰 정렬 방법 및 뷰들 사이의 간격 조정 방법)
SwiftUI에서 레이아웃을 구성할 때 Stack은 필수적으로 활용하게되는 매우 중요한 뷰 레이아웃입니다. 스택의 3가지 종류 스택 설명 HStack 가로방향으로 뷰를 배열(Horizontal Stack) VStack 세로방향으로 뷰를 배열(Vertical...
[백그라운드 서비스]Bad notification for startForeground: [java.lang.RuntimeException: invalid channel for service notification
android.app.RemoteServiceException: Bad notification for startForeground: java.lang.RuntimeException: invalid channel for service notification: Notification(channel=null pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x40 color=0x00000000 backgroundColor=0x00000000 vis=PRIVATE) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1745) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6853) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:860) 2019-10-31 20:02:36.128 18834-18834/ E/UncaughtException: android.app.RemoteServiceException: Bad notification for startForeground: java.lang.RuntimeException: invalid channel for service notification: Notification(channel=null pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x40 color=0x00000000 backgroundColor=0x00000000 vis=PRIVATE) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1745) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6853) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:860) [원인 코드] @Override public void...
[중복 오류 수정]Duplicate jar entry [android/support/v4/c/b$a.class]
Duplicate jar entry [android/support/v4/c/b$a.class] [발생배경] targetSdkVersion 28로 업그레이드 하면서 발생하였다. 빌드는 정상적이지만, 앱을 실행할 때 발생하는 오류이다. [해결방법] 안드로이드X로 마이그레이션 해야한다. 상단 메뉴...
[빌드 오류]Unfortunately you can’t have non-Gradle Java modules and Android-Gradle modules in one project.
Unfortunately you can’t have non-Gradle Java modules and Android-Gradle modules in one project. [오류발생 원인] 기존 프로젝트를 폴더명만 변경후 기존 프로젝트와 폴더명만 변경한 프로젝트를 동시에 시작했다. 그리고나서 기존 프로젝트는 종료하였다. 그리고 폴더명만 변경한 프로젝트의 전체 패키지명을 변경하였고...
워드프레스 블로그 내부 검색를 구글 또는 네이버 검색엔진으로 보내는 방법
워드프레스 테마 마다 searchform.php를 제공하는 것도 있고 아닌것도 있다. 제공함에도 불구하고 해당 파일을 열어서 수정해보아도 해당파일를 사용하고 있지않고 다른곳에서 호출되어 사용되고 있어, 다음에 또 위치...
[android : kotlin] 코틀린 ( 커스텀 리스트형, 다중 선택형, 단일 선택형) 다이얼로그 사용 예제 -setItems(), setMultiChoiceItems(), setSingleChoiceItems()
AlertDialog는 작은 팝업창을 의미한다. AlertDialog.Buider() 메서드를 사용하여 생성한다. 간단하게 사용하기에 용이하지만 텍스트위치 버튼 위치 등 UI를 변경할 수 없다. 기본적으로 3가지 버튼을 지원한다. DialogInterface.BUTTON_POSITIVE :...
라이트세일 bitnami 워드프레스 Error establishing a database connection 오류 해결방법
워드프레스 테마를 변경하는 과정에 갑자기 블로그에 접근이 안되는 상황이 발생함!! 워드프레스 블로그를 운영하면서 처음 보는 거라 굉장히 당황 스러움!! 해결방법을 찾아보니 아마존 라이트세일 비트나미 워드프레스...
테라로사엔 디카페인 커피가 없다.
아침 8시 식사를 마치고 서종면에 있는 테라로사(TERA ROSA) 커피점을 찾았다. 집에서 25분이면 가는 거리…..차 막히기 전에 서둘러 출발…. 춘천 방면 고속도로를 타고 8시 25분에...
[android : kotlin] 코틀린 다이얼로그 (Dialog) 사용 예제 – AlertDialog, DatePickerDialog, TimePickerDialog
AlertDialog는 작은 팝업창을 의미한다. AlertDialog.Buider() 메서드를 사용하여 생성한다. 간단하게 사용하기에 용이하지만 텍스트위치 버튼 위치 등 UI를 변경할 수 없다. 기본적으로 3가지 버튼을 지원한다. DialogInterface.BUTTON_POSITIVE :...