용도: 레이아웃을 독립적인 구성 요소로 만들고, 복잡한 UI에서 재사용할 때 유용합니다.장점: Fragment는 독립적인 생명 주기를 가지며, 동적으로 UI를 추가하고 제거하는 데 적합합니다.사용 예시:네비게이션, 탭을 포함한 구조에서 주로 사용.복잡한 레이아웃을 여러
Fragment는 Android에서 UI 구성 요소를 재사용 가능하고 독립적으로 관리할 수 있는 작은 부분으로 분리할 수 있게 해주는 기능입니다. Fragment는 자체적인 생명 주기를 가지고 있으며, 하나의 Activity 내에서 여러 개의 Fragment를 추가,