1. Firebase 회원가입 필요 - 도움말 : 안드로이드 스튜디오 상단 > Tool > Firebase > Cloud Messaging - 참조 : https://hwihyeon.tistory.com/4 Google firebase_안드로이드 사용방법 1. 구글 로그인 후 아래 사이트 접속 - https://firebase.google.com/?hl=ko Firebase Firebase는 고품질 앱을 빠르게 개발하고 비즈니스를 성장시키는 데 도움이 되는 Google의 모바일 플랫폼입니다. firebase... hwihyeon.tistory.com 2. 1번 사항 완료 후 dependecies 설정 추가 - build.gradle (Module: app) implementation 'com.google..
1. Activity에서 Class 정의 - 구현이 단순한 관계로 설명없이 소스 서술 NotificationManager topMsgManager; NotificationCompat.Builder topMsgBuilder; private static String CHANNEL_ID = "test_app_topNotice"; private static String CHANEL_NAME = "test_app_topNotice"; 2. 알림창을 띄울 함수 정의 public void showTopNotice() { topMsgBuilder = null; topMsgManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); //CHANNEL_I..
1. 다이얼로그 레이아웃 생성 - 기본적으로 사용할 다이얼로그 레이아웃(확인 및 경고 알림)을 생성한다. - layout > dialog_confirm.xml - layout > dialog_alert.xml 2. 버튼 클릭 시 클릭 모션 생성 - 버튼 클릭 시 해당 클릭을 제대로 인지하기 위한 모션을 생성해준다. - 색상 : values > colors.xml 별도 정의 #FFFFFF #7C7C7C - drawable > btn_click_base.xml 3. 테스트할 다이얼로그를 띄울 버튼을 생성한다. - MainActivity layout에 버튼 생성 - layout > activity_main.xml 4. 커스텀 다이얼로그 class 생성 - Activity에 선언해도 되지만 유지보수 및 기독성을..
1. 메시지를 감싸는 배경 설정 - res > drawable > toast_design_bg - 하단의 배경색상은 회색이며 모서리 부분을 둥글게 다듬었다. 2. 메시지를 표시할 layout 생성 - layout > toast_design 3. 메시지 함수 생성 - 단일 activity일 경우 편의성, 유지보수를 위해 공통함수로 사용하면 좋다. private void displayMsg(String Msg) { LayoutInflater inflater = getLayoutInflater(); //toast_design.xml 파일의 toast_design_root 속성을 로드 View toastDesign = inflater.inflate(R.layout.toast_design, (ViewGroup) ..
1. 다이얼로그 창에 들어갈 이미지 생성 - 이미지 저작권 문제도 있으니, 안드로이드 Image Asset을 통해 생성 - drawable > ic_loading_foreground.xml 2. 다이얼로그 창에 들어갈 배경 xml 생성 - drawable > loading_dialog_backgound 3. 애니메이션을 추가할 xml 파일 생성 - 해당 이미지가 360도 회전하는 xml 파일 생성 - drawable > loading.xml 4. 로딩 팝업창을 구성할 layout 생성 - layout > loading_dialog 5. 로딩 팝업 호출 시 불러올 다이얼로그 생성 - dialog > LoadingDialog package com.main.test.dialog; import android.a..