English 中文(简体)
我应创造许多活动还是做一个很长的活动?
原标题:Should I create numerous Activities or make a very long Activity?
  • 时间:2012-05-22 05:24:11
  •  标签:
  • android

好吧,我被告知做一个高尔夫分数卡应用程序, 但我卡住了如何我 执行评分每个洞。

在高尔夫球中,每个洞都有自己的得分, 我制作应用程序的每场比赛有27个洞。

I don t know whether I should make the 27 Activities for the 27 Holes or Use one Activity and ViewFlip with 27 different identical layouts for the whole thing.

现在我只想知道 哪个是解决问题的最好办法

最佳回答

我不知道我是否应该为27个空洞 做27个活动 或者使用一个活动和视图翻页 27个不同的布局 整个事情。

每个洞的布局相同( 我假设), 因此该布局和当它进入下一个洞分时, 只需更新该布局中的数据。 即使不同洞的布局稍有不同, 您仍应该使用一个您动态更新( 当然也会动态修改) 的单一布局 。

如果您打算在27个相同的布局之间翻转, 不要使用 ViewFlipper

问题回答

暂无回答




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

热门标签