프래그먼트에 관한 내용은 안드로이드-프래그먼트-사용-간단-예제 를 참고하자. 이번에는 한 화면에 2개의 프래그먼트를 만들어 보는 예제이다.. 프로젝트 익스플로러에서 다음과 같이 3개의 파일을 생성해야 함을 잊지 말자. counterfragment..xml 파일은 실제 프래그먼트를 구성하는 UI파일이다. activity_two_fragment1.xml 여기서 실제 프래그먼트가 2개라는 것을 명시해주는 UI이다. TwoFragment1.java package com.example.ch20_twofragment; import android.app.Activity; import android.app.Fragment; import android.os.Bundle; import android.view.LayoutI..