<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<Button
android:id="@+id/page1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Page1" />
<Button
android:id="@+id/page2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Page2" />
<Button
android:id="@+id/page3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Page3" />
</LinearLayout>
<FrameLayout
android:id="@+id/frame_layout"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
android:id="@+id/frame_01"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#ff0000" >
</LinearLayout>
<LinearLayout
android:id="@+id/frame_02"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#00ff00" >
</LinearLayout>
<LinearLayout
android:id="@+id/frame_03"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#0000ff" >
</LinearLayout>
</FrameLayout>
</LinearLayout>
'Programming > Android' 카테고리의 다른 글
TabActivity 사용법 (0) | 2013.03.23 |
---|---|
다중 액티비티 예제 (0) | 2013.03.23 |
안드로이드 실습 (0) | 2013.03.09 |
Intent 활용하기 (0) | 2013.03.08 |
ubuntu 에 jdk 간편하게 설치하기 (0) | 2013.02.27 |