代码拉取完成,页面将自动刷新
同步操作将从 xiaojinziCoder/Component 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
组件化方案真的有很多,那么这个组件化方案优秀在哪里?相比于 ARouter
,WMRouter
,ActivityRouter
,CC
,DDComponent
等开源的组件化框架,有哪些一样或者优秀的点
androidx
,几乎没有其他组件化框架支持 androidx
的90%
代码都是在主线程的,UI
、弹框等操作.Callback
机制可以在拦截器中做任何耗时的任务Idea Plugin
方便快速浏览,持续会更新此插件Fragment
或者 Activity
销毁的时候会取消Intent
H5
ActivityResult
,很多框架不支持或者需要入侵 BaseActivity
Rx
扩展库扩展完美结合了 RxJava2
了解更多请看 wiki 更多功能等你来发现
@RouterApiAnno()
public interface AppApi {
@HostAnno(ModuleConfig.Help.NAME)
@PathAnno((ModuleConfig.Help.TEST_WEB_ROUTER))
void goToTestWebRouter(Context context);
}
// 声明式路由接口调用
Router.withApi(AppApi.class).goToTestWebRouter(this);
轻松拿到目标界面 ActivityResult
Router.with(mTestContext.fragment())
.host(ModuleConfig.Module1.NAME)
.path(ModuleConfig.Module1.TEST_AUTORETURN)
.requestCode(123)
.navigateForIntent(new BiCallback<Intent>() {
@Override
public void onSuccess(@NonNull RouterResult result, @NonNull Intent intent) {
}
@Override
public void onCancel(@Nullable RouterRequest originalRequest) {
}
@Override
public void onError(@NonNull RouterErrorResult errorResult) {
}
});
界面字段的注入
配套的跳转向导
一个帮助您识别路由和拦截器的库,减少您查找的时间,配合组件化使用
为了更好的能交流,这里新建了一个QQ群:870981195 或者扫描二维码来进群
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。