Google Androidで「タブ」を持つ画面を作成するには ①レイアウトに「タブホスト(TabHost)」ビューグループを埋め込む ②「TabActivity」クラスを親クラスとするアクティビティを作成 の2パターンが存在します。 どちらのパターンで作成しても良いのですが、今回は ①レイアウトに「タブホスト(TabHost)」ビューグループを埋め込む を採用します。 画面の完成イメージは以下の通りです。 また、完成したEclipseプロジェクトを以下の通り公開します。 TabHostSample.zip これからはTabHostクラスを使った「タブ付き画面」の作成方法の解説です。 今回使用するクラスは以下の通りです。 android.widget.TabHost android.widget.TabHost.TabSpec android.widget.TabWidget ★まずはプロ