vcstrong / jetpackmvvm Goto Github PK
View Code? Open in Web Editor NEW最新最实用的组件化android-MVVM框架
License: Apache License 2.0
最新最实用的组件化android-MVVM框架
License: Apache License 2.0
Could not GET 'https://jitpack.io/com/github/VcStrong/ConstantPlugin/0.0.1/ConstantPlugin-0.0.1.pom'. Received status code 403 from server: Forbidden
主页viewpager的第一Fragment再嵌套viewpager
MainActivity放置viewpager, 第一个fragment再内置viewpager, 类似小红书那种, WDFragViewModel里定义的dialog等在apply changes后都会是null
比如消息模块 我的模块 主页模块 都要打开用户资料页面activity,这个activity怎么共享呢?
我用git clone下来项目后,运行报错,信息如下:
ERROR: This project uses AndroidX dependencies, but the 'android.useAndroidX' property is not enabled. Set this property to true in the gradle.properties file and retry.
The following AndroidX dependencies are detected: androidx.appcompat:appcompat:1.1.0, androidx.core:core:1.1.0, androidx.slidingpanelayout:slidingpanelayout:1.0.0, androidx.versionedparcelable:versionedparcelable:1.1.0, androidx.fragment:fragment:1.1.0, androidx.customview:customview:1.0.0, androidx.swiperefreshlayout:swiperefreshlayout:1.0.0, androidx.constraintlayout:constraintlayout-solver:1.1.3, androidx.interpolator:interpolator:1.0.0, androidx.loader:loader:1.0.0, androidx.activity:activity:1.0.0, androidx.drawerlayout:drawerlayout:1.0.0, androidx.collection:collection:1.1.0, androidx.viewpager:viewpager:1.0.0, androidx.localbroadcastmanager:localbroadcastmanager:1.0.0, androidx.arch.core:core-common:2.1.0, androidx.savedstate:savedstate:1.0.0, androidx.annotation:annotation:1.1.0, androidx.lifecycle:lifecycle-common:2.2.0, androidx.appcompat:appcompat-resources:1.1.0, androidx.lifecycle:lifecycle-viewmodel:2.2.0, androidx.legacy:legacy-support-core-ui:1.0.0, androidx.constraintlayout:constraintlayout:1.1.3, androidx.lifecycle:lifecycle-livedata:2.2.0, androidx.arch.core:core-runtime:2.1.0, androidx.lifecycle:lifecycle-livedata-core:2.2.0, androidx.legacy:legacy-support-core-utils:1.0.0, androidx.documentfile:documentfile:1.0.0, androidx.cursoradapter:cursoradapter:1.0.0, androidx.vectordrawable:vectordrawable-animated:1.1.0, androidx.recyclerview:recyclerview:1.0.0, androidx.vectordrawable:vectordrawable:1.1.0, androidx.coordinatorlayout:coordinatorlayout:1.0.0, androidx.asynclayoutinflater:asynclayoutinflater:1.0.0, androidx.lifecycle:lifecycle-runtime:2.2.0, androidx.print:print:1.0.0
Affected Modules: app, common, open_im, open_login, open_main, open_push
我的gradle-wrapper.properties配置信息如下:
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
android.useAndroidX=true
android.enableJetifier=true
distributionUrl=https://services.gradle.org/distributions/gradle-5.6.4-all.zip
1.首先感谢你上传的的项目,让我可以直观学习mvvm;
2.我把项目运行起来,发现只有login和welcome2个页面可以跑;
3.注册页面里面获取验证码功能没有,如果无法注册,也就没有测试账户登录,那首页信息有根据userid来获取的,也无法请求;
4.请问我该如何完整的运行该项目。
再次感谢,你的分享
你好,我搜到您的项目好像在同时用BoostMultiDex和ARouter,想咨询一下他们不会冲突么?没环境测试,请教一下,谢谢!
使用多个fragment+viewpager时,数据就不显示了
/**
* 此方法用来确定采用的Rtrofit中baseUrl
* 由于Retrofit特性,baseUrl不能随意改动,当大项目拥有
* 多个域名控制不同业务的时候,则需要不同的Retrofit
* @todo 可以根据需要在子类中重写
*/
protected int getRequestType() {
return REQUEST_TYPE_DEFAULT;
}
/**
* 返回值类型,方便不同接口返回数据结构不同的情况,参见{@link #getConsumer(DataCall)}
* 应对大项目多数据结构
* @TODO 可以根据需要在子类中重写
*/
protected int getResponseType() {
return RESPONSE_TYPE_DEFAULT;
}
这个怎么用。我现在项目中调用了不同的域名
WDFragViwModel未继承VeiwModel也没有实现LifecycleObserver, 那么它如果管理生命周期?
为何我打包就打了一个空白的。其他model好像都没有
为什么打包后几个模块业务都没有啊。路由报 ARouter::There is no route match the path [/xxx/xxx], in group [xxx][ ]”
1.子fragment viewmodel如何关联主fragment ,因为首页有顶部滑动标签(类似今日头条tab), 我想用tablayout+viewpager+fragment+recyclerview
2.阿里路由有时候点击跳转事件不响应
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.