iPhone-在Android中像标签栏?标签、iPhone、Android

2023-09-03 23:08:51 作者:當前狀態錄取

在iPhone,我们可以创建一个具有标签栏视图,并使其应用程序的根视图,然后使用标签栏,以浏览子的看法。

In iPhone we can create a view that has a tab bar and make it the root view of the application then use the tab bar to navigate through sub views.

什么是Android的最贴近的方式呢?

what is the most close approach to this in Android?

它是用一个标签式的控制?但是,这包括仅使用一种活性。

Is it to use a Tabbed Control? but this includes using just one activity.

什么是使用的Andr​​oid创建活动与导航控制等活动的方式类似于iPhone?

what is the approach to use in Android to create an activity with a navigation control to other activities in a way similar to that of the iPhone?

推荐答案

有一个教程有关Android开发网站创建标签布局:

There's a tutorial for creating a "Tab Layout" on the android dev site:

您可以实现您的选项卡的内容   以下两种方法之一:使用标签交换   在同一活动中的意见,或使用   标签之间完全改变   单独的活动

You can implement your tab content in one of two ways: use the tabs to swap Views within the same Activity, or use the tabs to change between entirely separate activities