Android中类似iPhone的标签栏?

Android中类似iPhone的标签栏?,android,android-tabhost,Android,Android Tabhost,在iPhone中,我们可以创建一个具有选项卡栏的视图,并使其成为应用程序的根视图,然后使用选项卡栏在子视图中导航 在安卓系统中,最接近这一点的方法是什么 是否要使用选项卡式控件?但这包括只使用一个活动 在安卓系统中,用什么方法创建一个类似于iPhone的导航控件的活动?对不起,我真的不知道iPhone,但是快速操作对话框可以帮助你吗 我想象一个对话框中的一些活动列表 我希望这与您想要的接近。在android开发网站上创建“选项卡布局”有一个简单的方法: 您可以在中实现选项卡内容 两种方法之一:

在iPhone中,我们可以创建一个具有选项卡栏的视图,并使其成为应用程序的根视图,然后使用选项卡栏在子视图中导航

在安卓系统中,最接近这一点的方法是什么

是否要使用选项卡式控件?但这包括只使用一个活动


在安卓系统中,用什么方法创建一个类似于iPhone的导航控件的活动?

对不起,我真的不知道iPhone,但是快速操作对话框可以帮助你吗

我想象一个对话框中的一些活动列表

我希望这与您想要的接近。

在android开发网站上创建“选项卡布局”有一个简单的方法:

您可以在中实现选项卡内容 两种方法之一:使用选项卡交换 同一活动中的视图,或使用 要在两个选项卡之间完全更改的选项卡 单独活动



(来源:)

这里有几个例子

这个是可滚动的



Update:大家好,我找到了另一种方法。检查我的博客帖子TabHost、TabActivity等是否已贬值,不是吗?
<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android" 
android:id="@android:id/tabhost" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent"
>
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"        
android:layout_marginBottom="0dp" 
>
    <FrameLayout
    android:id="@android:id/tabcontent"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"            
    android:layout_weight="1" 
    />

    <TabWidget
    android:id="@android:id/tabs"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_weight="0"
   />
</LinearLayout>
</TabHost>