Android StackView 小部件示例源代码

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12071802/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 09:38:49  来源:igfitidea点击:

StackView Widget Sample source code

androidandroid-widget

提问by manjusg

Please provide StackView Widget example source code . http://developer.android.com/resources/samples/StackWidget/index.htmlredirects to samples link http://developer.android.com/tools/samples/index.html.

请提供 StackView Widget 示例源代码。http://developer.android.com/resources/samples/StackWidget/index.html重定向到示例链接http://developer.android.com/tools/samples/index.html

The Sample link suggests that the example can be found under "/samples/android-/" folder. But i didn't found any sample under these folders from api level 11 to 16 in my windows 7 PC.

示例链接表明该示例可以在“/samples/android-/”文件夹下找到。但是我在 Windows 7 PC 中从 api 级别 11 到 16 的这些文件夹下没有找到任何示例。

In the App widget sectionthere are frequent references to this sample project but sadly i couldn't find the source. Please help me out.

App 小部件部分,经常提到这个示例项目,但遗憾的是我找不到源。请帮帮我。

采纳答案by Rene van der Lende

I was missing a few developer demos too, but I finally found them in the SDK (updated to API17) docs subfolder:

我也错过了一些开发人员演示,但我终于在 SDK(更新到 API17)docs 子文件夹中找到了它们:

\android-sdk\docs\resources\samples\StackWidget

\android-sdk\docs\resources\samples\StackWidget

So, actually, you had it all along!!

所以,实际上,你一直都拥有它!!

Update (08/22/13):

更新 (08/22/13):

On Januari 27tht 2013 The folder mentioned above DIDexist, however, after updating to Android 4.2 and 4.3 with ADT 22.05 the folder ...\samples\...has been removed from the SDK and is no longer available. Fortunately I still have both an untouched version and an eclipse project available. Get in touch if you would like a copy...

在Januari 27tht 2013文件夹上面提到的DID存在,但是,更新后至Android 4.2和4.3与ADT 22.05的文件夹... \样本\ ...已经从SDK中删除,并且不再可用。幸运的是,我仍然有一个未修改的版本和一个 eclipse 项目可用。需要复印件的请联系...

回答by Dan

I found a compressed tgz of the whole branch here: https://android.googlesource.com/platform/development/+/master/samples/StackWidget

我在这里找到了整个分支的压缩 tgz:https: //android.googlesource.com/platform/development/+/master/samples/StackWidget

7-zip should be able to unpack tgz

7-zip 应该能够解压 tgz

回答by DrkStr

its over here if you are still looking for it

如果你还在寻找它,它就在这里

http://docs.huihoo.com/android/3.0/resources/samples/StackWidget/

http://docs.huihoo.com/android/3.0/resources/samples/StackWidget/

回答by palimad

Check Vogella's Github here: https://github.com/vogellacompany/android-examples/tree/master/com.vogella.android.stackview.activity

在此处查看 Vogella 的 Github:https: //github.com/vogellacompany/android-examples/tree/master/com.vogella.android.stackview.activity

You can clone or download from here: https://github.com/vogellacompany/android-examples.git

您可以从这里克隆或下载:https: //github.com/vogellacompany/android-examples.git

You can find stack widget demo under "com.example.android.stackwidget" directory

您可以在“com.example.android.stackwidget”目录下找到堆栈小部件演示