René's URL Explorer Experiment


Title: GitHub - SongLiuDing/Collection-Android: Collection aggregates some of the basic modules of the project, saving developer time. · GitHub

Open Graph Title: GitHub - SongLiuDing/Collection-Android: Collection aggregates some of the basic modules of the project, saving developer time.

X Title: GitHub - SongLiuDing/Collection-Android: Collection aggregates some of the basic modules of the project, saving developer time.

Description: Collection aggregates some of the basic modules of the project, saving developer time. - SongLiuDing/Collection-Android

Open Graph Description: Collection aggregates some of the basic modules of the project, saving developer time. - SongLiuDing/Collection-Android

X Description: Collection aggregates some of the basic modules of the project, saving developer time. - SongLiuDing/Collection-Android

Opengraph URL: https://github.com/SongLiuDing/Collection-Android

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository
route-controllerfiles
route-actiondisambiguate
fetch-noncev2:d875dcdb-cc86-e6dd-978e-442bfd7a1427
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-id9320:2658D0:6DDC3CB:969335E:6A5EAE23
html-safe-nonceea47a78b30762c3a0d9ba01e7630c58231a0faac4d4737ff41c64eb50f8ea6f6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzIwOjI2NThEMDo2RERDM0NCOjk2OTMzNUU6NkE1RUFFMjMiLCJ2aXNpdG9yX2lkIjoiNTczNTMyMDc1MjcxMjc1Njc3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac9842c66b6733717365efa2bb1d2a1fcfc1cbedc9df5e6a8a6337a0d67d15649d
hovercard-subject-tagrepository:182963288
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location//
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/SongLiuDing/Collection-Android
twitter:imagehttps://opengraph.githubassets.com/af3fbb87dd605c863d0dd8931bc970deec447cb946af84c3a958c6d36054dc2a/SongLiuDing/Collection-Android
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/af3fbb87dd605c863d0dd8931bc970deec447cb946af84c3a958c6d36054dc2a/SongLiuDing/Collection-Android
og:image:altCollection aggregates some of the basic modules of the project, saving developer time. - SongLiuDing/Collection-Android
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7129250e6854dcc7bfa46fc877bb154b96762b31e3fa82fdf0697c71f08bb32c
turbo-cache-controlno-cache
go-importgithub.com/SongLiuDing/Collection-Android git https://github.com/SongLiuDing/Collection-Android.git
octolytics-dimension-user_id40584872
octolytics-dimension-user_loginSongLiuDing
octolytics-dimension-repository_id182963288
octolytics-dimension-repository_nwoSongLiuDing/Collection-Android
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id126914517
octolytics-dimension-repository_parent_nwousernameyangyan/Collection-Android
octolytics-dimension-repository_network_root_id126914517
octolytics-dimension-repository_network_root_nwousernameyangyan/Collection-Android
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3084c198d559e243975a7a7f61d0b80bcea2a724
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/SongLiuDing/Collection-Android#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FSongLiuDing%2FCollection-Android
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FSongLiuDing%2FCollection-Android
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E&source=header-repo&source_repo=SongLiuDing%2FCollection-Android
Reloadhttps://github.com/SongLiuDing/Collection-Android
Reloadhttps://github.com/SongLiuDing/Collection-Android
Reloadhttps://github.com/SongLiuDing/Collection-Android
SongLiuDing https://github.com/SongLiuDing
Collection-Androidhttps://github.com/SongLiuDing/Collection-Android
usernameyangyan/Collection-Androidhttps://github.com/usernameyangyan/Collection-Android
Notifications https://github.com/login?return_to=%2FSongLiuDing%2FCollection-Android
Fork 0 https://github.com/login?return_to=%2FSongLiuDing%2FCollection-Android
Star 0 https://github.com/login?return_to=%2FSongLiuDing%2FCollection-Android
Code https://github.com/SongLiuDing/Collection-Android
Pull requests 0 https://github.com/SongLiuDing/Collection-Android/pulls
Actions https://github.com/SongLiuDing/Collection-Android/actions
Projects https://github.com/SongLiuDing/Collection-Android/projects
Security and quality 0 https://github.com/SongLiuDing/Collection-Android/security
Insights https://github.com/SongLiuDing/Collection-Android/pulse
Code https://github.com/SongLiuDing/Collection-Android
Pull requests https://github.com/SongLiuDing/Collection-Android/pulls
Actions https://github.com/SongLiuDing/Collection-Android/actions
Projects https://github.com/SongLiuDing/Collection-Android/projects
Security and quality https://github.com/SongLiuDing/Collection-Android/security
Insights https://github.com/SongLiuDing/Collection-Android/pulse
https://github.com/SongLiuDing/Collection-Android
Brancheshttps://github.com/SongLiuDing/Collection-Android/branches
Tagshttps://github.com/SongLiuDing/Collection-Android/tags
https://github.com/SongLiuDing/Collection-Android/branches
https://github.com/SongLiuDing/Collection-Android/tags
39 Commitshttps://github.com/SongLiuDing/Collection-Android/commits/master/
https://github.com/SongLiuDing/Collection-Android/commits/master/
.ideahttps://github.com/SongLiuDing/Collection-Android/tree/master/.idea
.ideahttps://github.com/SongLiuDing/Collection-Android/tree/master/.idea
apphttps://github.com/SongLiuDing/Collection-Android/tree/master/app
apphttps://github.com/SongLiuDing/Collection-Android/tree/master/app
collectionlibraryhttps://github.com/SongLiuDing/Collection-Android/tree/master/collectionlibrary
collectionlibraryhttps://github.com/SongLiuDing/Collection-Android/tree/master/collectionlibrary
gradle/wrapperhttps://github.com/SongLiuDing/Collection-Android/tree/master/gradle/wrapper
gradle/wrapperhttps://github.com/SongLiuDing/Collection-Android/tree/master/gradle/wrapper
.gitignorehttps://github.com/SongLiuDing/Collection-Android/blob/master/.gitignore
.gitignorehttps://github.com/SongLiuDing/Collection-Android/blob/master/.gitignore
LICENSEhttps://github.com/SongLiuDing/Collection-Android/blob/master/LICENSE
LICENSEhttps://github.com/SongLiuDing/Collection-Android/blob/master/LICENSE
README.mdhttps://github.com/SongLiuDing/Collection-Android/blob/master/README.md
README.mdhttps://github.com/SongLiuDing/Collection-Android/blob/master/README.md
build.gradlehttps://github.com/SongLiuDing/Collection-Android/blob/master/build.gradle
build.gradlehttps://github.com/SongLiuDing/Collection-Android/blob/master/build.gradle
gradle.propertieshttps://github.com/SongLiuDing/Collection-Android/blob/master/gradle.properties
gradle.propertieshttps://github.com/SongLiuDing/Collection-Android/blob/master/gradle.properties
gradlewhttps://github.com/SongLiuDing/Collection-Android/blob/master/gradlew
gradlewhttps://github.com/SongLiuDing/Collection-Android/blob/master/gradlew
gradlew.bathttps://github.com/SongLiuDing/Collection-Android/blob/master/gradlew.bat
gradlew.bathttps://github.com/SongLiuDing/Collection-Android/blob/master/gradlew.bat
settings.gradlehttps://github.com/SongLiuDing/Collection-Android/blob/master/settings.gradle
settings.gradlehttps://github.com/SongLiuDing/Collection-Android/blob/master/settings.gradle
READMEhttps://github.com/SongLiuDing/Collection-Android
MIT licensehttps://github.com/SongLiuDing/Collection-Android
https://github.com/SongLiuDing/Collection-Android#collection
https://camo.githubusercontent.com/46f480b8374cf8ee558a93d2492f9173c9c4f7b9f78b1307ccc55177f184b783/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72656c656173652d312e322e372d677265656e2e737667
https://camo.githubusercontent.com/d48f5ef161d7bca3d5146fbf2012896748edabdbb8c1bea0d81570dc033c2340/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6c6963656e73652d4d49542d677265656e2e737667
https://camo.githubusercontent.com/2a9926daa0ccfbd363e2e7f82ef7d6ce6e4f399075130e39dfe95a02ea642bfe/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275696c642d70617373696e672d677265656e2e737667
https://github.com/SongLiuDing/Collection-Android#更多交流请加微信公众号
https://camo.githubusercontent.com/3248861d22bd6d5f30a45937655a60aa69cfea6cd30697853e9ad39f43ae0e75/68747470733a2f2f75706c6f61642d696d616765732e6a69616e7368752e696f2f75706c6f61645f696d616765732f343336313830322d383863383937353363333864646637302e6a70673f696d6167654d6f6772322f6175746f2d6f7269656e742f7374726970253743696d61676556696577322f322f772f31323430
https://www.jianshu.com/p/0a8c27bc8457https://www.jianshu.com/p/0a8c27bc8457
https://github.com/SongLiuDing/Collection-Android#简书地址httpswwwjianshucomp0a8c27bc8457
https://juejin.im/post/5ab9987451882555635e5401https://juejin.im/post/5ab9987451882555635e5401
https://github.com/SongLiuDing/Collection-Android#掘金地址httpsjuejinimpost5ab9987451882555635e5401
https://github.com/SongLiuDing/Collection-Android#框架的引入
https://maven.google.comhttps://maven.google.com
https://github.com/SongLiuDing/Collection-Android#更新说明
https://github.com/SongLiuDing/Collection-Android#v127
https://github.com/SongLiuDing/Collection-Android#v126
https://github.com/SongLiuDing/Collection-Android#v125
https://github.com/SongLiuDing/Collection-Android#v124
https://github.com/SongLiuDing/Collection-Android#项目介绍
https://github.com/SongLiuDing/Collection-Android#文章目录
https://github.com/SongLiuDing/Collection-Android#一框架整体模块
https://camo.githubusercontent.com/b3f44ca30bd04494eb8fb554912934568b8721819deac28b362392b0b42568a6/68747470733a2f2f75706c6f61642d696d616765732e6a69616e7368752e696f2f75706c6f61645f696d616765732f343336313830322d666236613366633730396530653233352e6769663f696d6167654d6f6772322f6175746f2d6f7269656e742f7374726970
https://github.com/SongLiuDing/Collection-Android#二-pulltorefreshrecyclerview的使用
https://github.com/SongLiuDing/Collection-Android#1框架默认下拉刷新上拉加载更多样式
https://camo.githubusercontent.com/8320ca5c71c00e2a7e091b7374b1fea59ee0f72b16628812d05dd618cd6e6ac6/68747470733a2f2f75706c6f61642d696d616765732e6a69616e7368752e696f2f75706c6f61645f696d616765732f343336313830322d393139653939336364356337623034342e6769663f696d6167654d6f6772322f6175746f2d6f7269656e742f7374726970
https://github.com/SongLiuDing/Collection-Android#1布局文件
https://github.com/SongLiuDing/Collection-Android#2代码设置
https://github.com/SongLiuDing/Collection-Android#2自定义下拉刷新上拉加载更多样式
https://camo.githubusercontent.com/1145734033092250bb077c689ae02198ec8f156d47c98a31939eed9f59b476fd/68747470733a2f2f75706c6f61642d696d616765732e6a69616e7368752e696f2f75706c6f61645f696d616765732f343336313830322d616634323530306238323731363566382e6769663f696d6167654d6f6772322f6175746f2d6f7269656e742f7374726970
https://github.com/SongLiuDing/Collection-Android#1代码设置
https://github.com/SongLiuDing/Collection-Android#2自定义刷新和加载更多样式
https://github.com/SongLiuDing/Collection-Android#在进行自定义view之前先来了解刷新和加载更多的几种状态
https://github.com/SongLiuDing/Collection-Android#-basepulltorefreshview刷新
https://github.com/SongLiuDing/Collection-Android#baseloadmoreview加载更多
https://github.com/SongLiuDing/Collection-Android#自定义刷新的步骤
https://github.com/SongLiuDing/Collection-Android#自定义view继承basepulltorefreshview重写initviewsetrefreshtimevisibleboolean-showdestroy方法
https://github.com/SongLiuDing/Collection-Android#实现basepulltorefreshviewonstatechangelistener监听重点主要是进行状态切换后的相关操作逻辑
https://github.com/SongLiuDing/Collection-Android#自定义加载更多的步骤包括没有没有更多数据显示的操作
https://github.com/SongLiuDing/Collection-Android#自定义view继承baseloadmoreview重写initviewsetstatedestroy方法
https://github.com/SongLiuDing/Collection-Android#注意在自定义加载更多样式时如果需要有没有更多加载更多数据提示同样需要在布局中写好然后在onsatae中根据状态对加载和没有跟多显示提示进行显示隐藏操作
https://github.com/SongLiuDing/Collection-Android#3上拉加载更多配合swiperefreshlayout使用
https://camo.githubusercontent.com/58e9150eb3b5f53bfc3298b51da126ecbb97ebcb736eab9d30c85c3baddc4803/68747470733a2f2f75706c6f61642d696d616765732e6a69616e7368752e696f2f75706c6f61645f696d616765732f343336313830322d383364346162663437393735643865652e6769663f696d6167654d6f6772322f6175746f2d6f7269656e742f7374726970
https://github.com/SongLiuDing/Collection-Android#1布局文件-1
https://github.com/SongLiuDing/Collection-Android#2代码设置-1
https://github.com/SongLiuDing/Collection-Android#3注意的问题
https://github.com/SongLiuDing/Collection-Android#4recyclerview添加头部空布局
https://camo.githubusercontent.com/2362c98e88964badefb12a5c3190ec64e48efa485005fa001e45eb7838948561/68747470733a2f2f75706c6f61642d696d616765732e6a69616e7368752e696f2f75706c6f61645f696d616765732f343336313830322d343339363364363033396334316262322e6769663f696d6167654d6f6772322f6175746f2d6f7269656e742f7374726970
https://github.com/SongLiuDing/Collection-Android#1代码设置-1
https://github.com/SongLiuDing/Collection-Android#5上拉加载更多实现nomoredata自动刷新
https://camo.githubusercontent.com/9cd72b4d251237e75debc867b7e3680fee074afb42994f8d88df9076a41df34d/68747470733a2f2f75706c6f61642d696d616765732e6a69616e7368752e696f2f75706c6f61645f696d616765732f343336313830322d363331646662633136653866653432642e6769663f696d6167654d6f6772322f6175746f2d6f7269656e742f7374726970
https://github.com/SongLiuDing/Collection-Android#1上拉加载更多数据的布局设置在上面的自定义loadingmoreview中有介绍如果要显示没有更多数据提示只需要在loadmore返回数据之后设置
https://github.com/SongLiuDing/Collection-Android#2自动刷新需要列表已经填充了数据之后再做自动刷新操作才会生效
https://github.com/SongLiuDing/Collection-Android#6pulltorefreshrecyclerview的其他使用
https://github.com/SongLiuDing/Collection-Android#1提供的使用方法
https://github.com/SongLiuDing/Collection-Android#2刷新加载更多接口回调pulltorefreshrecyclerviewonrefreshandloadmorelistener提供一下两个方法
https://github.com/SongLiuDing/Collection-Android#在设置recyclerview是要设layoutmanager
https://github.com/SongLiuDing/Collection-Android#如果使用pulltorefreshrecyclerview在activtyfragment中的ondestroy调用mrecyclerviewdestroy防止内存泄漏
https://github.com/SongLiuDing/Collection-Android#三baserecyclerviewadapter的使用
https://github.com/SongLiuDing/Collection-Android#1baserecyclerviewadapter的比原始adapter的代码量减小
https://github.com/SongLiuDing/Collection-Android#1使用代码
https://github.com/SongLiuDing/Collection-Android#使用者需要在继承baserecyclerviewadapter时传入一个数据实体类型具体的操作在convert方法中操作
https://github.com/SongLiuDing/Collection-Android#baseviewholder提供了一些常用view的基本操作通过baseviewholdergetview可得到布局中的控件
https://github.com/SongLiuDing/Collection-Android#2baserecyclerviewadapter提供了两个构造函数
https://github.com/SongLiuDing/Collection-Android#主要是对pulltorefreshrecyclerview和recyclerview的适配使用时适配器根据需要使用对应的构造函数
https://github.com/SongLiuDing/Collection-Android#2添加item的点击和长按事件
https://camo.githubusercontent.com/3fe6d85a1c3780a04a620a741913ebf590bdd280f029ed8d79ab895189fbbeeb/68747470733a2f2f75706c6f61642d696d616765732e6a69616e7368752e696f2f75706c6f61645f696d616765732f343336313830322d336338666639316634653065383032612e6769663f696d6167654d6f6772322f6175746f2d6f7269656e742f7374726970
https://github.com/SongLiuDing/Collection-Android#1-item点击事件实现
https://github.com/SongLiuDing/Collection-Android#2item长按事件实现
https://github.com/SongLiuDing/Collection-Android#3也可以实现baserecyclerviewadapteronitemclicklistener和baserecyclerviewadapteronitemlongclicklistener
https://github.com/SongLiuDing/Collection-Android#3多布局的使用
https://camo.githubusercontent.com/48d10e4d7fdf923440add4b8dfa353b4f00d84353003f1796746829ae6ec25c3/68747470733a2f2f75706c6f61642d696d616765732e6a69616e7368752e696f2f75706c6f61645f696d616765732f343336313830322d326136633066363833343033396332612e6769663f696d6167654d6f6772322f6175746f2d6f7269656e742f7374726970
https://github.com/SongLiuDing/Collection-Android#baserecyclerviewadapter的多布局实现需要注意的四步
https://github.com/SongLiuDing/Collection-Android#自定义adapter需要继承baserecyclerviewmultiitemadapter
https://github.com/SongLiuDing/Collection-Android#-数据实体类需要继承basemultiitementity在getitemviewtype返回布局类型
https://github.com/SongLiuDing/Collection-Android#-在自定义adapter中的构造函数中通过additemtype传入不同类型对应的布局
https://github.com/SongLiuDing/Collection-Android#在自定义adapter中的convert进行类型判断做相对应的操作
https://github.com/SongLiuDing/Collection-Android#4添加拖拽滑动删除
https://camo.githubusercontent.com/de4e6493b9c5e50a2952f2ae6aa4a2631ff783222d2e89c37503afe63519c261/68747470733a2f2f75706c6f61642d696d616765732e6a69616e7368752e696f2f75706c6f61645f696d616765732f343336313830322d313130663431326664336337353965302e6769663f696d6167654d6f6772322f6175746f2d6f7269656e742f7374726970
https://github.com/SongLiuDing/Collection-Android#局限只针对recyclerview对本框架封装的pulltorefreshrecyclerview会出现混乱
https://github.com/SongLiuDing/Collection-Android#baserecyclerviewadapter和baserecyclerviewmultiitemadapter都已经封装支持拖拽滑动适配器只需要根据需求继承其中一个即可
https://github.com/SongLiuDing/Collection-Android#框架提供了一个baserecycleitemtouchhelper对于普通的左右滑动删除拖拽已经实现如果想自定义可以继承baserecycleitemtouchhelper类再重写相对应的方法进行实现
https://github.com/SongLiuDing/Collection-Android#在activityfragment中需要实现以下代码
https://github.com/SongLiuDing/Collection-Android#baserecyclerviewadapterondraganddeletelistener进行操作动作完成之后的回调
https://github.com/SongLiuDing/Collection-Android#注意需要延时再进行逻辑操作不然会出现数据混乱
https://github.com/SongLiuDing/Collection-Android#四mvprxjavaretrofit的封装使用
https://github.com/SongLiuDing/Collection-Android#由于retrofit已经封装在datamanager中在datamanager中有详细的介绍这里只是提供一个例子让大家了解如何使用mvprxjavaretrofit
https://github.com/SongLiuDing/Collection-Android#1在使用retrofit请求网络之前需要进行配置在框架中提供了了config配置类
https://github.com/SongLiuDing/Collection-Android#框架中的config总览如下
https://github.com/SongLiuDing/Collection-Android#在项目中需要根据项目需要进行配置在application中设置
https://github.com/SongLiuDing/Collection-Android#根据项目需要定义一个通用的数据实体类这是本例通用实体类这个类需要设置到applicatin中
https://github.com/SongLiuDing/Collection-Android#温馨提醒由于每个项目返回来的json数据格式有所不同如果result中代表的字段例如newslist没有内容返回来的时候这个字段需要后台控制不返回如果不做处理会报解析错误
https://github.com/SongLiuDing/Collection-Android#3mvprxjavaretrofitokhttp的缓存机制
https://camo.githubusercontent.com/d5fd57a302d263ea80b2053608417105becae7aa4f2b722e4338b166d8fb8f7f/68747470733a2f2f75706c6f61642d696d616765732e6a69616e7368752e696f2f75706c6f61645f696d616765732f343336313830322d653066303239343038386462323462642e6769663f696d6167654d6f6772322f6175746f2d6f7269656e742f7374726970
https://github.com/SongLiuDing/Collection-Android#上面的缓存配置完成之后通过以下代码即可
https://github.com/SongLiuDing/Collection-Android#3mvprxjavaretrofitokhttp的缓存机制-1
效果图https://upload-images.jianshu.io/upload_images/4361802-e0f0294088db24bd.gif?imageMogr2/auto-orient/strip
https://github.com/SongLiuDing/Collection-Android#上面的缓存配置完成之后通过以下代码即可-1
https://github.com/SongLiuDing/Collection-Android#4mvprxjavaretrofit自定义磁盘缓存机制
效果图https://upload-images.jianshu.io/upload_images/4361802-04e2322fc5f515ee.gif?imageMogr2/auto-orient/strip
https://github.com/SongLiuDing/Collection-Android#注意
https://github.com/SongLiuDing/Collection-Android#rxobservablelistener有三个回调方法
https://github.com/SongLiuDing/Collection-Android#只会重写onnext方法其它两个方法可以自行选择重写
https://github.com/SongLiuDing/Collection-Android#rxobservablelistener提供两个构造函数
https://github.com/SongLiuDing/Collection-Android#这两个构造函数主要主要是为了统一处理onerror的如果要自定义错误提醒则可以选择第二个构造函数
https://github.com/SongLiuDing/Collection-Android#通过datamanager的网络请求方式会返回来一个disposableobserver需要把它通过rxmanageraddobserver添加进compositedisposable才能正常执行
https://github.com/SongLiuDing/Collection-Android#五datamanager的使用datamanager封装了三种数据请求方式包括retroiftsharepreference和realm
https://github.com/SongLiuDing/Collection-Android#1datamanager的了解
https://github.com/SongLiuDing/Collection-Android#1datamanager的retrofit请求
https://github.com/SongLiuDing/Collection-Android#1配置
https://github.com/SongLiuDing/Collection-Android#2使用统一解析类不使用统一解析类混合使用
https://camo.githubusercontent.com/d91845ca7c0d5c0da9c00b8507e536d8d97839061f28de2e3659db0dcfacbc0a/68747470733a2f2f757365722d676f6c642d63646e2e786974752e696f2f323031382f352f31342f313633356437653361353061643462323f773d33363826683d36353426663d67696626733d31353834383035
https://github.com/SongLiuDing/Collection-Android#-如果项目如果项目的json数据格式统一可以设置一个统一的been类例如上面的例子的result类同时要在config类设置下面例子都是有统一解析类
https://github.com/SongLiuDing/Collection-Android#如果项目没有统一的解析been类那么config类就不用设置了在retrofit请求的时候直接指定一个解析类就可以了
https://github.com/SongLiuDing/Collection-Android#如果项目想两种方式共存那么在请求的时候需要通过setusercommonclassfalse设置才能不使用统一解析类进行解析
https://github.com/SongLiuDing/Collection-Android#注意disk_cache_list_limit_time和disk_cache_model_limit_time这两种限时使用缓存的请求方式不统一一种解析方式会出现页面没有数据显示因为在限定的时间内如果突然转用另外一个解析实体类去解析会解析失败只能等过限定时间或者清除本地缓存去解决这一问题
https://github.com/SongLiuDing/Collection-Android#2requestbuilder的设置网络请求的配置
https://github.com/SongLiuDing/Collection-Android#数据处理的方式
https://github.com/SongLiuDing/Collection-Android#网络请求方式
https://github.com/SongLiuDing/Collection-Android#requestbuilder的填充
https://github.com/SongLiuDing/Collection-Android#datamanager提供retrofit请求的方法
https://github.com/SongLiuDing/Collection-Android#3retrofit的扩展
https://github.com/SongLiuDing/Collection-Android#如果存在datamanager提供的方法满足不了的请求可以通过retrofitmanager提供的getnocacheapiservice和getapiservice获得不缓存和缓存的retrofit然后通过rxsubscriber进行回调
https://github.com/SongLiuDing/Collection-Android#定义一个apiservice类
https://github.com/SongLiuDing/Collection-Android#4注意的问题
https://github.com/SongLiuDing/Collection-Android#请求的域名已经在application设置好了seturl不需要填完整的url
https://github.com/SongLiuDing/Collection-Android#要区分清楚接口返回的数据时list还是model从而选择对应的reqtype
https://github.com/SongLiuDing/Collection-Android#setrequestparam可以设置参数集合setparam可以单个设置
https://github.com/SongLiuDing/Collection-Android#使用disk_cache_list_limit_timedisk_cache_model_limit_time这两个显示限时缓存时需要通过setfilepathandfilename设置保存路径setlimthours设置缓存时间单位为小时
https://github.com/SongLiuDing/Collection-Android#如果要上传单张图片需要用到httptypeone_multipart_post的请求方式同时通过requestbuilder设置multipartbodypart
https://github.com/SongLiuDing/Collection-Android#2datamanager的sharepreference的使用
https://github.com/SongLiuDing/Collection-Android#1配置-1
https://github.com/SongLiuDing/Collection-Android#2使用方法
https://github.com/SongLiuDing/Collection-Android#3datamanager提供sharepreference请求的方法
https://github.com/SongLiuDing/Collection-Android#3datamanager的realm的使用
https://github.com/SongLiuDing/Collection-Android#1配置-2
https://github.com/SongLiuDing/Collection-Android#需要在项目的application初始化realm的一些参数
https://github.com/SongLiuDing/Collection-Android#在project-的buildgradle中的dependencies加入
https://github.com/SongLiuDing/Collection-Android#在项目-的buildgradle中的顶部加入
https://github.com/SongLiuDing/Collection-Android#2使用方法-1
https://github.com/SongLiuDing/Collection-Android#3datamanager提供realm请求的方法
https://github.com/SongLiuDing/Collection-Android#4realm数据迁移been类字段增加移除
https://github.com/SongLiuDing/Collection-Android#步骤
https://github.com/SongLiuDing/Collection-Android#5注意的问题
https://github.com/SongLiuDing/Collection-Android#六-base的使用
https://github.com/SongLiuDing/Collection-Android#1base封装了mvp和项目的基类
https://github.com/SongLiuDing/Collection-Android#1mvp
https://github.com/SongLiuDing/Collection-Android#2在项目中的网络请求mvp的完整实现
https://github.com/SongLiuDing/Collection-Android#定义一个contract类内部分别继承上面的mvp-base类在这里定义操作
https://github.com/SongLiuDing/Collection-Android#presenter的具体执行类
https://github.com/SongLiuDing/Collection-Android#model的具体执行类
https://github.com/SongLiuDing/Collection-Android#ui
https://github.com/SongLiuDing/Collection-Android#2ui-base
https://github.com/SongLiuDing/Collection-Android#1ibaseactivity
https://github.com/SongLiuDing/Collection-Android#缺陷如果对ibaseactivity进行扩展在具体调用时需要类型才能调用相关方法
https://github.com/SongLiuDing/Collection-Android#2ibasefragment
https://github.com/SongLiuDing/Collection-Android#缺陷如果对ibaseactivity进行扩展在具体调用时需要类型才能调用相关方法-1
https://github.com/SongLiuDing/Collection-Android#3ui状态控制stateview的使用
https://github.com/SongLiuDing/Collection-Android#1stateview的四种状态
https://github.com/SongLiuDing/Collection-Android#2stateview的使用
https://camo.githubusercontent.com/2487dd3d93c1f81173111391dba2af9faf5394c294c2a3f96bd517cff973b40c/68747470733a2f2f75706c6f61642d696d616765732e6a69616e7368752e696f2f75706c6f61645f696d616765732f343336313830322d363234363263373662666335663735302e6769663f696d6167654d6f6772322f6175746f2d6f7269656e742f7374726970
https://github.com/SongLiuDing/Collection-Android#定义一个通用布局
https://github.com/SongLiuDing/Collection-Android#添加到ui页面的layout中
https://github.com/SongLiuDing/Collection-Android#注意上面的语句添加的layout最外层最好是linearlayout以及设置为androidorientationvertical
https://github.com/SongLiuDing/Collection-Android#通过以下语句进行状态切换
https://github.com/SongLiuDing/Collection-Android#通过以下语句可以修改不同布局的内容以及样式
https://github.com/SongLiuDing/Collection-Android#3三步实现permission权限设置
https://camo.githubusercontent.com/e423d3fe7b7bc292a2916e983aed8615445671488ced725ffa4e1002a0d531fd/68747470733a2f2f75706c6f61642d696d616765732e6a69616e7368752e696f2f75706c6f61645f696d616765732f343336313830322d653966346430613766313237666165642e6769663f696d6167654d6f6772322f6175746f2d6f7269656e742f7374726970
https://github.com/SongLiuDing/Collection-Android#1设置好要请求的权限
https://github.com/SongLiuDing/Collection-Android#2权限通过permissionmanager管理
https://github.com/SongLiuDing/Collection-Android#3重写页面onrequestpermissionsresult
https://github.com/SongLiuDing/Collection-Android#注意如果有需求先判断是否所有权限都已经允许之后再进入主页面可以通过permissionmanagerislackpermission进行判断如果返回true则进行权限请求如果返回false则进入主页面
https://github.com/SongLiuDing/Collection-Android#4提供几种比较常用的dialog弹框
https://camo.githubusercontent.com/6cd85a9f77666b67314ad476edd61ca276f02ce87602e9d21c3df7df0560ff18/68747470733a2f2f75706c6f61642d696d616765732e6a69616e7368752e696f2f75706c6f61645f696d616765732f343336313830322d363037626665613366383162303962362e6769663f696d6167654d6f6772322f6175746f2d6f7269656e742f7374726970
https://github.com/SongLiuDing/Collection-Android#提供的dialog
https://github.com/SongLiuDing/Collection-Android#自定义dialog样式
https://github.com/SongLiuDing/Collection-Android#basedialog提供的方法
https://github.com/SongLiuDing/Collection-Android#5提供几种比较常用的popupwindow弹框
https://camo.githubusercontent.com/47204b45e87018affb6b6b506bb7bbdd5fe2940c1b74bb745d05887b346ae772/68747470733a2f2f75706c6f61642d696d616765732e6a69616e7368752e696f2f75706c6f61645f696d616765732f343336313830322d666562356133363634623863386464622e6769663f696d6167654d6f6772322f6175746f2d6f7269656e742f7374726970
https://github.com/SongLiuDing/Collection-Android#basepopupwindow提供的方法
https://github.com/SongLiuDing/Collection-Android#自定义popupwindow
https://github.com/SongLiuDing/Collection-Android#6使用displayutils修改状态栏
https://camo.githubusercontent.com/fb25e2380c43a548f7690a817797ad4d73f5618321cbbc8b872981abef3db8ab/68747470733a2f2f75706c6f61642d696d616765732e6a69616e7368752e696f2f75706c6f61645f696d616765732f343336313830322d386665393762373936323866333861322e6769663f696d6167654d6f6772322f6175746f2d6f7269656e742f7374726970
https://github.com/SongLiuDing/Collection-Android#7提供几种比较常用的utils工具类
https://github.com/SongLiuDing/Collection-Android#七-customview的使用
https://github.com/SongLiuDing/Collection-Android#1commontablayout的使用
https://camo.githubusercontent.com/ce6c75e772a5f00b3061225fd2fd5cab87b68b931361472d5f9dd5e3e247ff38/68747470733a2f2f75706c6f61642d696d616765732e6a69616e7368752e696f2f75706c6f61645f696d616765732f343336313830322d656564383964346366343037646262662e6769663f696d6167654d6f6772322f6175746f2d6f7269656e742f7374726970
https://github.com/SongLiuDing/Collection-Android#属性
https://github.com/SongLiuDing/Collection-Android#具体用户可参照例子使用
https://github.com/SongLiuDing/Collection-Android#2outsideframetablayout的使用
https://camo.githubusercontent.com/c7b825fc0cc84c6dc299f4f4769240cb75d7afd185591d88dcd89085d341eb97/68747470733a2f2f75706c6f61642d696d616765732e6a69616e7368752e696f2f75706c6f61645f696d616765732f343336313830322d633232316563393362353532633662642e6769663f696d6167654d6f6772322f6175746f2d6f7269656e742f7374726970
https://github.com/SongLiuDing/Collection-Android#属性-1
https://github.com/SongLiuDing/Collection-Android#具体用户可参照例子使用-1
https://github.com/SongLiuDing/Collection-Android#本文章会根据需要持续更新建议star收藏便于查看也欢迎大家提出更多建议
Readme https://github.com/SongLiuDing/Collection-Android#readme-ov-file
MIT license https://github.com/SongLiuDing/Collection-Android#MIT-1-ov-file
Please reload this pagehttps://github.com/SongLiuDing/Collection-Android
Activityhttps://github.com/SongLiuDing/Collection-Android/activity
0 forkshttps://github.com/SongLiuDing/Collection-Android/forks
Report repository https://github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2FSongLiuDing%2FCollection-Android&report=SongLiuDing+%28user%29
Releaseshttps://github.com/SongLiuDing/Collection-Android/releases
Packages 0https://github.com/users/SongLiuDing/packages?repo_name=Collection-Android
Please reload this pagehttps://github.com/SongLiuDing/Collection-Android
Contributorshttps://github.com/SongLiuDing/Collection-Android/graphs/contributors
Please reload this pagehttps://github.com/SongLiuDing/Collection-Android
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.