viewPager实现轮播图Demo

上传者: pigdreams | 上传时间: 2022-05-09 15:44:27 | 文件大小: 17.84MB | 文件类型: ZIP
运用viewpager实现的轮播图,实现方式是一种伪无限循环,即把viewpager的当前item设置为一个很大的数,这样就实现了左右滑动,一般不会被滑到很大的数目。

文件下载

资源详情

[{"title":"( 53 个子文件 17.84MB ) viewPager实现轮播图Demo","children":[{"title":"viewpager_demo","children":[{"title":".project <span style='color:#111;'> 850B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 563B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"com","children":[{"title":"hapzhu","children":[{"title":"viewpager_demo","children":[{"title":"MainActivity.java <span style='color:#111;'> 5.46KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 868B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"drawable-ldpi","children":null,"spread":false},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 7.48KB </span>","children":null,"spread":false},{"title":"c.jpg <span style='color:#111;'> 3.36MB </span>","children":null,"spread":false},{"title":"e.jpg <span style='color:#111;'> 3.86MB </span>","children":null,"spread":false},{"title":"b.jpg <span style='color:#111;'> 2.97MB </span>","children":null,"spread":false},{"title":"d.jpg <span style='color:#111;'> 3.20MB </span>","children":null,"spread":false},{"title":"a.jpg <span style='color:#111;'> 3.07MB </span>","children":null,"spread":false}],"spread":true},{"title":"values-v11","children":[{"title":"styles.xml <span style='color:#111;'> 334B </span>","children":null,"spread":false}],"spread":true},{"title":"menu","children":[{"title":"main.xml <span style='color:#111;'> 375B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable","children":[{"title":"selector_shape_bg.xml <span style='color:#111;'> 335B </span>","children":null,"spread":false},{"title":"shape_point_circle_disable.xml <span style='color:#111;'> 242B </span>","children":null,"spread":false},{"title":"shape_point_circle_enable.xml <span style='color:#111;'> 220B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.69KB </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"activity_main.xml <span style='color:#111;'> 1.89KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 24.20KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 12.22KB </span>","children":null,"spread":false}],"spread":false},{"title":"values-w820dp","children":[{"title":"dimens.xml <span style='color:#111;'> 381B </span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 231B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 697B </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 220B </span>","children":null,"spread":false}],"spread":false},{"title":"values-v14","children":[{"title":"styles.xml <span style='color:#111;'> 391B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 177B </span>","children":null,"spread":false}],"spread":true},{"title":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"hapzhu","children":[{"title":"viewpager_demo","children":[{"title":"BuildConfig.java <span style='color:#111;'> 167B </span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'> 3.13KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"libs","children":[{"title":"android-support-v4.jar <span style='color:#111;'> 1.36MB </span>","children":null,"spread":false}],"spread":true},{"title":".classpath <span style='color:#111;'> 475B </span>","children":null,"spread":false},{"title":"proguard-project.txt <span style='color:#111;'> 781B </span>","children":null,"spread":false},{"title":"ic_launcher-web.png <span style='color:#111;'> 50.19KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"classes","children":[{"title":"com","children":[{"title":"hapzhu","children":[{"title":"viewpager_demo","children":[{"title":"R$layout.class <span style='color:#111;'> 424B </span>","children":null,"spread":false},{"title":"R$style.class <span style='color:#111;'> 452B </span>","children":null,"spread":false},{"title":"R$dimen.class <span style='color:#111;'> 482B </span>","children":null,"spread":false},{"title":"BuildConfig.class <span style='color:#111;'> 359B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 693B </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 361B </span>","children":null,"spread":false},{"title":"MainActivity$MyAdapter.class <span style='color:#111;'> 1.61KB </span>","children":null,"spread":false},{"title":"MainActivity$1$1.class <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 508B </span>","children":null,"spread":false},{"title":"MainActivity$2.class <span style='color:#111;'> 1.86KB </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 743B </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 493B </span>","children":null,"spread":false},{"title":"MainActivity$1.class <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"R$menu.class <span style='color:#111;'> 409B </span>","children":null,"spread":false},{"title":"MainActivity.class <span style='color:#111;'> 5.14KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 868B </span>","children":null,"spread":false},{"title":"dexedLibs","children":[{"title":"android-support-v4-6089c5c85743b8886d76ab6c4bcc5b9a.jar <span style='color:#111;'> 460.95KB </span>","children":null,"spread":false}],"spread":false},{"title":"res","children":[{"title":"crunch","children":[{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 5.82KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 17.47KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 9.14KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"classes.dex <span style='color:#111;'> 1.38MB </span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明