Android Studio 51

[Android Studio/Kotlin] List View height problem inside Scroll View

[안드로이드 스튜디오/코틀린] 스크롤뷰 내 리스트뷰의 높이 설정 문제 문제 해결 방법 (1) 리스트뷰 높이를 따로 설정하기 import android.util.Log import android.widget.ListAdapter import android.widget.ListView object ListHelper { // 댓글 개수에 따라 댓글 목록의 높이를 조정하기 fun getListViewSize(cLV: ListView) { // 아무것도 하지 않고 null을 반환 val cLVAdapter: ListAdapter = cLV.adapter ?: return // 댓글 목록 전체 높이 var totalHeight = 0 // 최종 크기를 얻기 위해 for문에 listAdapter 설정 for (si..

[Android Studio] Warning:(숫자, 숫자) This tag and its children can be replaced by one `<TextView/>` and a compound drawable

[안드로이드 스튜디오] 이 태그(뷰)와 자식(뷰)들은 하나의 와 복합 드로어블로 대체될 수 있음 문제 해결 방법 참고 [Anroid] TextView, IamgeView 합체!!!! - This tag and its childer can be replaced by one and a compound drawable le This tag and its childer can be replaced by one and a compound drawable less...... blog.naver.com

[Android Studio] android.databinding.tool.processing.ScopedException: [databinding] {"msg":"Found \u003clayout\u003e but data binding is not enabled.\n\nAdd buildFeatures.dataBinding \u003d true to your build.gradle to enable it.","file":"파일 경로"..

[안드로이드 스튜디오] 데이터바인딩에서 뷰바인딩으로 변경 후 오류 발생 문제 [Android Studio] Cannot access '어쩌고' which is a supertype of '패키지명.databinding.액티비티명Binding'. Check your [안드로이드 스튜디오] 데이터바인딩에서 뷰바인딩으로 변경 후 오류 발생 문제 해결 방법 (1) Invalidate Caches / Restart... 해결 방법 (2) Clean Project, Rebuild Project 다음 게시글로 이어짐 [Android.. shinye0213.tistory.com android.databinding.tool.processing.ScopedException: [databinding] {"msg":"Foun..

[Android Studio] Cannot access '어쩌고' which is a supertype of '패키지명.databinding.액티비티명Binding'. Check your module classpath for missing or conflicting dependencies

[안드로이드 스튜디오] 데이터바인딩에서 뷰바인딩으로 변경 후 오류 발생 문제 해결 방법 (1) Invalidate Caches / Restart... 해결 방법 (2) Clean Project, Rebuild Project 다음 게시글로 이어짐 [Android Studio] android.databinding.tool.processing.ScopedException: [databinding] {"msg":"Found \u003clayout\u003e but data bi [안드로이드 스튜디오] 데이터바인딩에서 뷰바인딩으로 변경 후 오류 발생 문제 android.databinding.tool.processing.ScopedException: [databinding] {"msg":"Found \u003cla..

[Android Studio] Add image files to the Android emulator gallery

[안드로이드 스튜디오] 안드로이드 에뮬레이터 사진첩에 이미지 파일 추가하기 참고 [Cordova] android studio emulate에 이미지 파일 넣는방법 Android Studio Emulate에 이미지 파일 넣는 방법 코르도바 테스트 중 이미지 파일을 이용할 일이 생겼는데 기본적으로 에뮬레이터엔 파일이 존재하지 않습니다. 문서를 찾던 중 힌트가 된 부분이 있 planactor.tistory.com

[Android Studio] E/AndroidRuntime: FATAL EXCEPTION: DefaultDispatcher-worker-1 (2)

[안드로이드 스튜디오] 푸시 메시지 발송 시 앱이 강제 종료되는 오류 문제 [Android Studio] E/AndroidRuntime: FATAL EXCEPTION: DefaultDispatcher-worker-1 (1) [안드로이드 스튜디오] 푸시 메시지 발송 시 앱이 강제 종료되는 오류 문제 해결 방법 (1) Invalidate Caches / Restart... 해결 방법 (2) Clean Project 및 Rebuild Project 해결 방법 (3) Android Virtual D.. shinye0213.tistory.com E/MyLikeActivity: DataSnapshot { key = omfMOcZKwlMrxv2rAlkrcLC9fLn1, value = {qlLUy5dR38RCumYLM..

[Android Studio] E/AndroidRuntime: FATAL EXCEPTION: DefaultDispatcher-worker-1 (1)

[안드로이드 스튜디오] 푸시 메시지 발송 시 앱이 강제 종료되는 오류 문제 해결 방법 (1) Invalidate Caches / Restart... 해결 방법 (2) Clean Project 및 Rebuild Project 해결 방법 (3) Android Virtual Device Manager에서 기존 가상기기 삭제 후 새로 만들기 해결 방법 (4) Firebase에 신규 계정 생성 다음 게시글로 이어짐 [Android Studio] E/AndroidRuntime: FATAL EXCEPTION: DefaultDispatcher-worker-1 (2) [안드로이드 스튜디오] 푸시 메시지 발송 시 앱이 강제 종료되는 오류 문제 [Android Studio] E/AndroidRuntime: FATAL EXC..

[Android Studio/Kotlin] Views

[안드로이드 스튜디오/코틀린] 뷰 Views(뷰, android.view.View) - 화면을 구성하는 눈에 보이는 요소 - 모든 UI 요소들의 부모 클래스로, 위젯과 레이아웃으로 나뉨 - Views(뷰) = Widget(위젯) + Layout(레이아웃) - Views(뷰) = View(뷰) + Viewgroup(뷰 그룹) 뷰 참고 [Android] Activity와 View / View의 종류 및 속성 참고 : 한국방송통신대학교 모바일앱프로그래밍 교재( https://press.knou.ac.kr/goods/textBookView.do?condCmdtCode=9788920035999&condLscValue=001&condYr=&condSmst= ) 1. Activity와 View Acitivity 안드..

[Android Studio] 패키지.MainActivity is not an Activity subclass or alias

[안드로이드 스튜디오] 지금도 이유를 알 수 없는 오류 문제 해결 방법 (1) Main Activity의 Launch Options 변경 해결 방법 (2) Clean Project, Rebuild Project 해결 방법 (3) 껐켰 참고 Android Studio: Error: SplashActivity is not an Activity subclass or alias I have a library project which has all functionality and some activities, and I also have a wrapper activity which only has a JSON configuration string and some styling. I imported the libr..

[Android Studio/Kotlin] Fragment, Include

[안드로이드 스튜디오/코틀린] 프래그먼트, 인클루드 Fragment frag1.xml frag2.xml activity_main.xml MainActivity.kt package com.shinyelee.android_study2 import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.Fragment import com.shinyelee.android_study2.databinding.ActivityMainBinding ..

[Android Studio/Kotlin] Motion Sensor, Wi-Fi

[안드로이드 스튜디오/코틀린] 동작 센서, 와이파이 Motion Sensor activity_main.xml MainActivity.kt package com.shinyelee.android_study2 import android.content.Context import android.hardware.Sensor import android.hardware.SensorEvent import android.hardware.SensorEventListener import android.hardware.SensorManager import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import com.shinyelee.android_st..

[Android Studio/Kotlin] Volume, Music Streaming

[안드로이드 스튜디오/코틀린] 음량, 음악 재생 Volume MainActivity.kt package com.shinyelee.android_study2 import android.content.Context import android.media.AudioManager import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.view.View import com.shinyelee.android_study2.databinding.ActivityMainBinding class MainActivity : AppCompatActivity() { private var vBinding : ActivityMainBi..

[Android Studio/Kotlin] Time Picker, Saving Data

[안드로이드 스튜디오/코틀린] 선택 도구, 데이터 저장하기 TimePicker build.gradle (:app) plugins { id 'com.android.application' id 'kotlin-android' } android { compileSdk 32 defaultConfig { applicationId "com.shinyelee.android_study2" minSdk 23 // TimePicker 사용하기 위해 21에서 23으로 높여줌 targetSdk 32 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" // app:srcCompat 에러 제거용 vecto..

[Android Studio/Kotlin] Dialog, Share

[안드로이드 스튜디오/코틀린] 대화상자, 공유하기 Dialog activiti_main.xml MainActivity.kt package com.shinyelee.android_study2 import android.content.DialogInterface import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.widget.EditText import androidx.appcompat.app.AlertDialog import com.shinyelee.android_study2.databinding.ActivityMainBinding class MainActivity : AppCompatActivity(..

[Android Studio/Kotlin] Vibration, Push Notification

[안드로이드 스튜디오/코틀린] 진동, 푸시 알림 Vibration activity_main.xml MainActivity.kt package com.shinyelee.android_study2 import android.content.Context import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.os.VibrationEffect import android.os.Vibrator import android.view.View import com.shinyelee.android_study2.databinding.ActivityMainBinding class MainActivity : AppCompatAc..

반응형