没有合适的资源?快使用搜索试试~ 我知道了~
PagerRecyclerViewExample:一个Viewpager实现为Recyclerview中的标题
共88个文件
xml:47个
png:9个
bin:6个
需积分: 5 0 下载量 196 浏览量
2021-05-17
07:25:55
上传
评论
收藏 1.72MB ZIP 举报
温馨提示
PagerRecyclerViewExample(测试) 截屏 这个怎么运作? 我们首先定义2个不同的视图:1.header视图2.normal视图(在这种情况下为CardVIew)。 RecyclerView适配器将根据recyclerview项的索引确定它将获得哪种视图类型。 (这里只有两种情况:标头或没有标头。) 将其添加到您的项目 在您的build.gradle中:[版本可能有所不同] dependencies{ compile compile ' com.android.support:recyclerview-v7:24.2.1 ' } 在此示例中,我使用CardView填充了RecyclerView,因此该特定示例的依赖项需要编译CardView。 但是,嘿,如果您不需要它来使它正常工作。 :) 用法 使用自定义属性在xml布局中定义HeaderView 。
资源推荐
资源详情
资源评论
收起资源包目录
PagerRecyclerViewExample-master.zip (88个子文件)
PagerRecyclerViewExample-master
.gitignore 817B
app
.gitignore 7B
build.gradle 997B
src
androidTest
java
samnnyexample
pagerrecyclerviewexample
ExampleInstrumentedTest.java 762B
main
AndroidManifest.xml 682B
res
mipmap-xhdpi
ic_launcher.png 5KB
mipmap-mdpi
ic_launcher.png 2KB
layout
toolbar.xml 539B
home_header.xml 1KB
home_recycler_item.xml 1KB
activity_home.xml 683B
values-w820dp
dimens.xml 358B
mipmap-xxhdpi
ic_launcher.png 8KB
menu
home_menu.xml 686B
drawable
ad4.jpg 96KB
ad1.png 90KB
ad2.png 146KB
home_rabbit.jpg 43KB
dot_normal.xml 222B
ad3.png 28KB
ic_favorite_white_48dp.png 562B
dot_focused.xml 225B
mipmap-hdpi
ic_launcher.png 3KB
mipmap-xxxhdpi
ic_launcher.png 10KB
values
strings.xml 87B
colors.xml 208B
dimens.xml 211B
styles.xml 972B
java
samnnyexample
pagerrecyclerviewexample
CustomerAdapter.java 6KB
ActivityHome.java 2KB
test
java
samnnyexample
pagerrecyclerviewexample
ExampleUnitTest.java 406B
proguard-rules.pro 661B
app.iml 10KB
settings.gradle 15B
build.gradle 498B
gradlew 5KB
example.gif 708KB
README.md 5KB
gradlew.bat 2KB
gradle.properties 730B
.gradle
2.14.1
taskArtifacts
fileSnapshots.bin 3.22MB
fileSnapshotsToTreeSnapshotsIndex.bin 25KB
fileHashes.bin 261KB
taskArtifacts.bin 91KB
cache.properties.lock 17B
cache.properties 30B
tasks
_app_compileDebugJavaWithJavac
localClassSetAnalysis
localClassSetAnalysis.lock 17B
localClassSetAnalysis.bin 32KB
localJarClasspathSnapshot
localJarClasspathSnapshot.bin 24KB
localJarClasspathSnapshot.lock 17B
.idea
encodings.xml 159B
libraries
support_media_compat_24_2_1.xml 975B
exposed_instrumentation_api_publish_0_5.xml 706B
hamcrest_library_1_3.xml 334B
javawriter_2_1_1.xml 322B
cardview_v7_24_2_1.xml 586B
jsr305_2_0_1.xml 322B
javax_inject_1.xml 316B
support_fragment_24_2_1.xml 947B
support_annotations_24_2_1.xml 519B
support_core_utils_24_2_1.xml 782B
espresso_idling_resource_2_2_2.xml 688B
junit_4_12.xml 467B
support_vector_drawable_24_2_1.xml 646B
support_compat_24_2_1.xml 933B
support_v4_24_2_1.xml 411B
rules_0_5.xml 724B
appcompat_v7_24_2_1.xml 764B
animated_vector_drawable_24_2_1.xml 651B
javax_annotation_api_1_2.xml 350B
support_core_ui_24_2_1.xml 940B
runner_0_5.xml 730B
hamcrest_core_1_3.xml 516B
hamcrest_integration_1_3.xml 346B
espresso_core_2_2_2.xml 633B
recyclerview_v7_24_2_1.xml 782B
gradle.xml 705B
vcs.xml 180B
copyright
profiles_settings.xml 74B
runConfigurations.xml 564B
compiler.xml 686B
markdown-navigator
profiles_settings.xml 104B
modules.xml 385B
markdown-navigator.xml 4KB
gradle
wrapper
gradle-wrapper.properties 230B
gradle-wrapper.jar 52KB
PagerRecyclerViewExample.iml 878B
local.properties 432B
共 88 条
- 1
资源评论
深夜里呕吐的鱼公子
- 粉丝: 20
- 资源: 4721
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功