HwiHyeon_Programing
close
프로필 배경
프로필 로고

HwiHyeon_Programing

  • 분류 전체보기 (32)
    • 안드로이드 (11)
      • 안드로이드_기초 (0)
      • 안드로이드_java (9)
      • 안드로이드_Kotlin (2)
      • 안드로이드_오류 (0)
    • Server (20)
      • Web Server_기초 (0)
      • Spring(구버전) (16)
      • Spring(구버전) 오류 (4)
      • Nodejs (0)
      • Spring5(Kotlin) (0)
      • Docker (0)
      • Jenkins (0)
      • Swagger (0)
    • Database (0)
      • ORACLE (0)
      • MySQL (0)
    • 기타 (1)
    • 자료구조 (0)
  • 홈
  • 태그
  • 방명록
02. 안드로이드_Kotlin : 커스텀 다이얼로그

02. 안드로이드_Kotlin : 커스텀 다이얼로그

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..

  • format_list_bulleted 안드로이드/안드로이드_Kotlin
  • · 2022. 4. 26.
  • textsms
01. 안드로이드_Kotlin : 버튼 클릭 이벤트

01. 안드로이드_Kotlin : 버튼 클릭 이벤트

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..

  • format_list_bulleted 안드로이드/안드로이드_Kotlin
  • · 2022. 4. 25.
  • textsms
안드로이드 - okHttp3/WebSocket 구축 및 서버 테스트

안드로이드 - okHttp3/WebSocket 구축 및 서버 테스트

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. 코..

  • format_list_bulleted 안드로이드/안드로이드_java
  • · 2022. 4. 13.
  • textsms

안드로이드 - 버터나이프 적용

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); //오브젝트에 클릭 이벤트 설정 ..

  • format_list_bulleted 안드로이드/안드로이드_java
  • · 2022. 4. 12.
  • textsms
안드로이드 Volley 적용 및 스프링 서버 데이터 통신 구축

안드로이드 Volley 적용 및 스프링 서버 데이터 통신 구축

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 ..

  • format_list_bulleted 안드로이드/안드로이드_java
  • · 2022. 4. 11.
  • textsms
안드로이드 Retrofit2 적용 및 스프링 서버 데이터 통신 구축

안드로이드 Retrofit2 적용 및 스프링 서버 데이터 통신 구축

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...

  • format_list_bulleted 안드로이드/안드로이드_java
  • · 2022. 4. 8.
  • textsms
  • navigate_before
  • 1
  • 2
  • navigate_next
공지사항
전체 카테고리
  • 분류 전체보기 (32)
    • 안드로이드 (11)
      • 안드로이드_기초 (0)
      • 안드로이드_java (9)
      • 안드로이드_Kotlin (2)
      • 안드로이드_오류 (0)
    • Server (20)
      • Web Server_기초 (0)
      • Spring(구버전) (16)
      • Spring(구버전) 오류 (4)
      • Nodejs (0)
      • Spring5(Kotlin) (0)
      • Docker (0)
      • Jenkins (0)
      • Swagger (0)
    • Database (0)
      • ORACLE (0)
      • MySQL (0)
    • 기타 (1)
    • 자료구조 (0)
최근 글
인기 글
최근 댓글
태그
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바