1. res 파일 생성 및 정의 - 기본적인 색상 정의 or 레이아웃에 직접 작성 - values > colors.xml #FFFFFF #7C7C7C - 클릭 모션 이미지 생성 - res > drawable > btn_click_base.xml - 다이얼로그 레이아웃 생성 - res > layout > dialog_alert.xml - 엑티비티 레이아웃에 버튼 정의 - res > layout > activity_main.xml 2. 다이얼로그 코드 작성 - 위젯 선언 별도 함수로 정리 - 클릭 이벤트 정의 (다중 클릭 이벤트가 존재할 수 있으므로 onClick 함수로 사용) - com.project.mykotlin > dialog > CommAlertDialog package com.project.myk..
1. 화면 구성 - layout > activity_main.xml 2. 클릭 이벤트 설정 - java > com.project.mykotlin > MainActivity\ - 개별 클릭 이벤트보다 통합 관리할 수 있도록 별도 처리 - 버터나이프는 미적용 package com.project.mykotlin import android.app.Activity import android.os.Bundle import android.util.Log import android.view.View import android.widget.Button class MainActivity : Activity(),View.OnClickListener { override fun onCreate(savedInstanceState..
1. 들어가기 전 - 스프링 서버와 연동 테스트 - https://hwihyeon.tistory.com/30 16. 스프링 - WebSocket 구축 1. 들어가기 전 - 안드로이드와 연동 테스트를 위한 WebSocket 구축 테스트 - 웹에서의 소켓 통신 부분은 따로 구성되지 않음 2. dependency 추가 - pom.xml 추가 com.fasterxml.jackson.core jackson-datab.. hwihyeon.tistory.com 2. dependency 추가 - bulid.gralde (Module: app) //버전 확인 : https://square.github.io/okhttp/ implementation("com.squareup.okhttp3:okhttp:4.9.3") 3. 코..
1. dependency 설정 - build.gradle (Moudle: app) implementation 'com.jakewharton:butterknife:10.2.1' annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.1 2. 버터나이프 사용 전 후 비교 - 1 ) 사용 전 : 오브젝트 선언 후 id 연결 및 리스너 설정, 리스너 내부에서 세팅 필요 Button mainBtnOne; Button mainBtnTwo; //오브젝트 id Setting mainBtnOne = findViewById(R.id.mainBtnOne); mainBtnTwo = findViewById(R.id.mainBtnTwo); //오브젝트에 클릭 이벤트 설정 ..
1. 들어가기 전 - 안드로이드 어플, Spring Web Server 및 DB 서버가 제대로 동작되고 있다는 전제 조건 하에 진행 - Spring Server 구축은 Web Server 구축 목록 참조 - Volley 참조 : https://developer.android.com/training/volley?hl=ko 2. Volley 다운로드 - build.gradle (Module: app) //버전 확인 : https://developer.android.com/training/volley?hl=ko implementation 'com.android.volley:volley:1.1.1' 3. 안드로이드 - 코드 작성 - 별도의 클래스 파일로 작성 - 호출 및 수신 부분이 메인 코드(Activity ..
1. 들어가기 전 - 안드로이드 어플, Spring Web Server 및 DB 서버가 제대로 동작되고 있다는 전제 조건 하에 진행 - Spring Server 구축은 Web Server 구축 목록 참조 2. 안드로이드 - Retrofit2 설치 - interceptor : http 통신 로그를 보기 위해서 추가로 설치 - build.grade (Module.app) //버전 확인 : https://github.com/square/retrofit (Download 부분) implementation 'com.squareup.okhttp3:logging-interceptor:3.11.0' implementation 'com.google.code.gson:gson:2.7' implementation 'com...