본문 바로가기

Android

[안드로이드] Bottom Sheet Dialog -하단 다이어로그

반응형

안드로이드으로 앱을 개발할 경우 다이어로그 즉 모달창을 띄어 주어야 할 때가 있다.

간단하게 만들 수 도 있고, 또는 커스텀하여 자신만의 다이어로그창을 만들 수 있는데,

Bottom Sheet Dialog는 다양한 다이어로그 중 하나로 볼 수 있다 .

다른 것과의 차이점이라 함은, 위에 명칭과  같이 하단에 위치하며, 드래그를 통해 

닫을 수 있는 점을 들 수 가 있을 것 같다.

 

아래에 간단하게 따라할 수 있는 튜토리얼과 예제가 있어 첨부하며, 더 자세한 기능들을 이해하거나 알고 싶은 사용자를 위해서 공식문서 또한 같이 첨부한다.

< Bottom Sheet Dialog Fragment 예시>

 

좀 더 자세한 사항은 문서를 확인하면 알 수 있을 것이다.

1. 안드로이드 공식 문서 Bottom Sheet Dialog Fragment

https://developer.android.com/reference/android/support/design/widget/BottomSheetDialogFragment

 

BottomSheetDialogFragment  |  Android 개발자  |  Android Developers

From class android.support.v4.app.Fragment void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) Print the Fragments's state into the given stream. final boolean equals(Object o) Subclasses can not override equals(). final Fragment

developer.android.com

 

2. Codding in Flow 동영상 예제

-Codding in Flow에서는 이것 외에도 다양한 튜토리얼을 제공하고 있으므로, 다른 기능을 구현하고자 할 때 참고하면 충분한 도움을 받을 수 있을 것이라고 생각한다.  

https://www.youtube.com/watch?v=IfpRL2K1hJk

.

3. Codding in Flow 예제 코드 (영상 시청을 하며 따라하지 않고 바로 코드를 복붙할 목적이라면 아래 코드 활용)

https://codinginflow.com/tutorials/android/modal-bottom-sheet

 

Modal Bottom Sheet - Coding in Flow

In this tutorial we will learn, how to create a modal bottom sheet, by subclassing BottomSheetDialogFragment. Our sheet will have a custom layout and it will be able to communicate back to the underlying activity over an interface. Check out the PERSISTENT

codinginflow.com

 

 

 

Web, Android, iOS 개발 문의 및 앱 웹 제작 문의 

Email : funidea2020@naver.com

https://funidea.co.kr/

 

https://funidea.co.kr/

AI 챗봇 & 사물인식 사물 인식, 인공지능 챗봇 등 Smart한 인공지능 기술을 통해 반복 업무를 줄여 보세요. 위치 기반 서비스 GPS 기능을 활용하여 현재 위치를 기준으로 주변 정보(은행, 음식점, 주�

funidea.co.kr

 

여성 신체 사이즈 기반 상품 추천 서비스!

나에게 딱 맞은 골라보자! Fit Me ! 

https://fit-me.kr/

 

핏미 - 사이즈 고민 없는 여성 쇼핑앱

더이상의 사이즈 고민은 그만! 수많은 여성 쇼핑몰을 한눈에! - 핏미

fit-me.kr

 

반응형