Android fragment

2023. 1. 27. 23:29Frontend/Android

    목차
반응형

하나의 class file과 interface layout으로 구성됩니다.
activity를 여러 section으로 나눈것이 fragment 입니다.

  • 각 section이 layout과 class file로 구성됩니다.

activity 한개에 한개 혹은 하나 이상의 fragment로 구성될 수 있습니다.

 

 

 

참고

https://developer.android.com/guide/components/fragments?hl=ko 

 

프래그먼트  |  Android 개발자  |  Android Developers

A Fragment represents a behavior or a portion of user interface in an Activity. You can combine multiple fragments in a single activity to build a multi-pane UI and reuse a fragment in multiple activities. You can think of a fragment as a modular section

developer.android.com

 

반응형

'Frontend > Android' 카테고리의 다른 글

Kotlin 익명 객체 생성 (object expression)  (0) 2023.01.28
@+id, @id 의미  (0) 2023.01.28
Android layouts  (0) 2023.01.27
Android build.gradle  (0) 2023.01.27
Android 버튼 클릭 시 TextView에 텍스트 표시하기  (0) 2023.01.27