English 中文(简体)
我怎么能够只向一切活动(包括清单活动)发出一顿声明?
原标题:How can I declare only once a button to all activities (including List Activities)?

我想在所有活动中提出4个县和4个县以下的申请。 问题在于,我不想在所有活动中界定纽特人(因为仅仅在1个地方作修改较为简单)。

我认为的一种解决办法是: 主要活动由Mendu提供。 然而,我想使用从清单中延伸的清单。

是否只有一劳永逸地宣布和确定操作者,并在所有活动中使用这些纽扣?

最佳回答

解决单一州级的问题。

判断一项申请有4个固定的县。 你为单一州级的这些县撰写了4种方法,然后将其从每组别提一次。 页: 1 然而,这并不是完美的解决办法,而是给你一个独一无二的空间,你可以改变处理器,通过一切活动自动传播这些修改。

希望能帮助他人。

问题回答

很容易将<代码>ListActivity改为Actative,该代码为。 如果你这样做,你可以遵循你的“Main Menu”计划。





相关问题
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 ...

热门标签