English 中文(简体)
简言之:活动主
原标题:Android: Activity Host?

我有一个基本问题,但谷歌并没有给我带来许多结果(别无english,也不给他们带来任何途径)。 基本上,我想做的是:

我有一张图象,需要作为整个上诉过程的一位老板使用,例如:我不得不在新意召唤的屏幕上击退,即使新观点刚刚回过来,客户也会抱怨,因为本上诉书的“i”版本没有这样做。

因此,我基本上想像塔霍斯特那样做些什么,但却没有制片。 是否有办法创建新的Lyout文档,作为主装,在其中安装线索,具有图形顶,然后在布局档案的另一部分中打上“intent”或“active”?

谷歌可能不会给我带来任何结果,因为我或许会在这里使用错误的术语,但在这个问题上的任何帮助都难以理解!

感谢!

EDIT:

I m sorry i应当提到,这需要2.33(Gingerbread)兼容。 I m 听说“Fragments”的情况,我看看见他们在ADK3中的介绍:

最佳回答

零敲碎打或分裂式的一揽子方案将为你们工作。 甚至没有必要对奥古林进行搜索,因为ApiDemoes的碎片例会足以引起想法。

主要活动应有1个标题观点和1个分位持有人。 之后,该地的持照人推土机。

我的头部遭遇的另一个途径是:

创建<代码>TabWidget, 1 tab 。 其观点将是静态的头脑,在内容上增加一个活动组。 现在,转播部分信息屏幕将成为的儿童。 活动组

问题回答

删除<代码>windowBackground,称你的活动可为你工作。 基本上,你会形成一种风格(通常见res/ Values/themes.xml文档):

<style name="WithPersistentHeader" parent="@android:style/Theme">
    <item name="android:windowBackground">@drawable/persistent_header</item>
</style>

之后,你可以将风格应用到您的全程<代码><application> or on a per <active> basis in AndroidManifest.xml:

<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/WithPersistentHeader" >

    <!-- activities and services ... -->

</application>

那么,每项活动都需到负责人所在地的空位,才能从窗户下显示。

这方面的文件不多,但。 具备某些相关细节的研发人员博客员额。





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签