新闻首页效果[仿网易](ViewPager+Fragment+ListView)

上传者: kingmax54212008 | 上传时间: 2019-12-21 20:03:40 | 文件大小: 1.36MB | 文件类型: 7z
新闻首页效果[仿网易](ViewPager+Fragment+ListView), 1.添加fragment对象到fragment列表 2.添加title到title列表 3.从title列表中取出内容放到tabLayout容器中 4.创建并初始化适配器 5.为viewPager设定适配器 6.通过tab_FindFragment_title.setupWithViewPager(vp_FindFragment_pager 将TabLayout和ViewPager关联起来

文件下载

资源详情

[{"title":"( 64 个子文件 1.36MB ) 新闻首页效果[仿网易](ViewPager+Fragment+ListView)","children":[{"title":"viewpagerDemo","children":[{"title":"bin","children":[{"title":"classes.dex <span style='color:#111;'> 683.54KB </span>","children":null,"spread":false},{"title":"viewpagerDemo.apk <span style='color:#111;'> 278.76KB </span>","children":null,"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":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 9.14KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 17.47KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"jarlist.cache <span style='color:#111;'> 120B </span>","children":null,"spread":false},{"title":"dexedLibs","children":[{"title":"android-support-v4-8ef772d1ba5931f0d14f55130677b769.jar <span style='color:#111;'> 227.16KB </span>","children":null,"spread":false}],"spread":true},{"title":"classes","children":[{"title":"com","children":[{"title":"example","children":[{"title":"viewpagerdemo","children":[{"title":"MainActivity.class <span style='color:#111;'> 4.78KB </span>","children":null,"spread":false},{"title":"BuildConfig.class <span style='color:#111;'> 359B </span>","children":null,"spread":false},{"title":"MyFragment$1.class <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false},{"title":"FragmentAdapter.class <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":"R$layout.class <span style='color:#111;'> 564B </span>","children":null,"spread":false},{"title":"Contents.class <span style='color:#111;'> 466B </span>","children":null,"spread":false},{"title":"MyListViewAdapter.class <span style='color:#111;'> 1.78KB </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 722B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 428B </span>","children":null,"spread":false},{"title":"R$dimen.class <span style='color:#111;'> 482B </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 361B </span>","children":null,"spread":false},{"title":"R$menu.class <span style='color:#111;'> 409B </span>","children":null,"spread":false},{"title":"MainActivity$MyClickListener.class <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"MyListViewAdapter$ViewHolder.class <span style='color:#111;'> 657B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 798B </span>","children":null,"spread":false},{"title":"MyFragment.class <span style='color:#111;'> 4.13KB </span>","children":null,"spread":false},{"title":"MyFragment$MyClickListener.class <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 493B </span>","children":null,"spread":false},{"title":"R$color.class <span style='color:#111;'> 447B </span>","children":null,"spread":false},{"title":"MainActivity$MyViewPagerChangedListener.class <span style='color:#111;'> 2.52KB </span>","children":null,"spread":false},{"title":"R$style.class <span style='color:#111;'> 452B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"resources.ap_ <span style='color:#111;'> 43.76KB </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 866B </span>","children":null,"spread":false}],"spread":true},{"title":"res","children":[{"title":"drawable-ldpi","children":null,"spread":false},{"title":"values-v11","children":[{"title":"styles.xml <span style='color:#111;'> 324B </span>","children":null,"spread":false}],"spread":true},{"title":"menu","children":[{"title":"main.xml <span style='color:#111;'> 254B </span>","children":null,"spread":false}],"spread":true},{"title":"values-v14","children":[{"title":"styles.xml <span style='color:#111;'> 381B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 7.48KB </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":true},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 24.20KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 223B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 680B </span>","children":null,"spread":false},{"title":"color.xml <span style='color:#111;'> 144B </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 213B </span>","children":null,"spread":false}],"spread":true},{"title":"values-sw720dp-land","children":[{"title":"dimens.xml <span style='color:#111;'> 269B </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":"values-sw600dp","children":[{"title":"dimens.xml <span style='color:#111;'> 196B </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"item.xml <span style='color:#111;'> 749B </span>","children":null,"spread":false},{"title":"lay2.xml <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false},{"title":"activity_main.xml <span style='color:#111;'> 2.64KB </span>","children":null,"spread":false},{"title":"lay1.xml <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false},{"title":"lay3.xml <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"lay4.xml <span style='color:#111;'> 396B </span>","children":null,"spread":false}],"spread":false}],"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":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"example","children":[{"title":"viewpagerdemo","children":[{"title":"BuildConfig.java <span style='color:#111;'> 167B </span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'> 3.27KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"src","children":[{"title":"com","children":[{"title":"example","children":[{"title":"viewpagerdemo","children":[{"title":"FragmentAdapter.java <span style='color:#111;'> 699B </span>","children":null,"spread":false},{"title":"MyListViewAdapter.java <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"MyFragment.java <span style='color:#111;'> 3.03KB </span>","children":null,"spread":false},{"title":"MainActivity.java <span style='color:#111;'> 4.51KB </span>","children":null,"spread":false},{"title":"Contents.java <span style='color:#111;'> 247B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 816B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 466B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 563B </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 866B </span>","children":null,"spread":false},{"title":"libs","children":[{"title":"android-support-v4.jar <span style='color:#111;'> 606.89KB </span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

免责申明

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