如何使用Android ViewPager

如何使用Android ViewPager,第1张

概述我正在计划从WindowsPhone7到Android的一些应用程序的端口.通过一些博客我找到了一个名为ViewPager的“额外”Android控件,它似乎是WP7Pivot控件的穷人版本.我想尝试使用此控件,因为我的WP7应用程序使用Pivot.我计划定位到Android2.3.3(API10),因为http://developer.android.

我正在计划从Windows Phone 7到Android的一些应用程序的端口.通过一些博客我找到了一个名为VIEwPager的“额外”AndroID控件,它似乎是WP7 Pivot控件的穷人版本.我想尝试使用此控件,因为我的WP7应用程序使用Pivot.

我计划定位到AndroID 2.3.3(API 10),因为http://developer.android.com/resources/dashboard/platform-versions.html的信息告诉我,任何级别都会在相对较少的手机上运行.所以,我的Eclipse是为那个级别设置的.

使用Eclipse SDK管理器我尝试添加Extras AndroID支持包,但它不会添加给出下面粘贴的错误.我不知道所有这些错误是什么意思,但我想知道我是否需要运行API 11才能使用兼容性软件包即androID支持包?

所以,我想我的最后一个问题是:如果我定位AndroID 2.3.3,我可以使用VeiwPager控件吗?此外,是否有任何可下载的完整解决方案使用vIEwPager?我能找到的只是显示代码片段的“教程”.
谢谢,
院长

Preparing to install archivesDownloading AndroID SDK Platform-tools, revision 11file not found: C:\Program files (x86)\AndroID\androID-sdk\temp\platform-tools_r11-windows.zip (Access is denIEd)Downloading documentation for AndroID SDK, API 15, revision 2file not found: C:\Program files (x86)\AndroID\androID-sdk\temp\docs-15_r02.zip (Access is denIEd)Downloading SDK Platform AndroID 4.0.3, API 15, revision 3file not found: C:\Program files (x86)\AndroID\androID-sdk\temp\androID-15_r03.zip (Access is denIEd)Downloading Samples for SDK API 15, revision 2file not found: C:\Program files (x86)\AndroID\androID-sdk\temp\samples-15_r02.zip (Access is denIEd)Downloading ARM EABI v7a System Image, AndroID API 15, revision 2file not found: C:\Program files (x86)\AndroID\androID-sdk\temp\sysimg_armv7a-15_r02.zip (Access is denIEd)Downloading Sources for AndroID SDK, API 15, revision 2file not found: C:\Program files (x86)\AndroID\androID-sdk\temp\sources-15_r02.zip (Access is denIEd)Downloading AndroID Support package, revision 8file not found: C:\Program files (x86)\AndroID\androID-sdk\temp\support_r08.zip (Access is denIEd)SkipPing 'AndroID SDK Tools, revision 19'; it depends on 'AndroID SDK Platform-tools, revision 11' which was not installed.Done. nothing was installed.

解决方法:

I’m wondering if I need to be running API 11 to be able to use the compatibiity package aka the androID Support Package?

没有.

can I use the VeiwPager control if I target AndroID 2.3.3?

是.

Also, is there any downloadable complete solution that uses the vIEwPager?

Here is a small sample app在VIEwPager中显示10个EditText小部件,每页一个.

Here is a more complex app,实现了一个数字图书阅读器,在VIEwPager中每页有一章(在WebVIEw中),但在我的一本书的上下文之外它可能没什么意义.

关于您的错误,我的猜测是您通过自安装.EXE文件安装了AndroID SDK,在这种情况下,您需要运行具有管理员权限的SDK Manager来更新它,IIRC.

总结

以上是内存溢出为你收集整理的如何使用Android ViewPager全部内容,希望文章能够帮你解决如何使用Android ViewPager所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/web/1114333.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-29
下一篇2022-05-29

发表评论

登录后才能评论

评论列表(0条)

    保存