Atlas在ViewGroup中及本地startActivity方式加载bundle插件 public class AtlasDelegateHelper { //ViewGroup中加载 public static void switchToActivity(Activity
在公共library中定义中间件接口 package cn.appblog.example_common.middleware; public interface ISwitchMainTabListener { void onSwitchTab(int position); } 单例封
问题描述 ViewPager使用FragmentPagerAdapter滑动Fragment,然后通过Atlas插件化框架在Fragment的onCreateView中动态加载bundle,发现只显示第一个bundle,往后滑动ViewPager,能够正常加载Fragment,但不能显示Fragme
构建 cd app ..\gradlew.bat clean assembleDebug 产物目录:app/build/ouput/apk AndroidManifest.xml <application android:name="android.taobao.atlas.sta
Github:https://github.com/alibaba/atlas Demo中的Module简介 Module 含义 app Host Module activitygroupcompat Demo中的工具类 databindbundle 使用Google Bin
Atlas基本简介 Atlas是伴随着手机淘宝的不断发展而衍生出来的一个运行于Android系统上的一个容器化框架,我们也叫动态组件化(Dynamic Bundle)框架。它主要提供了解耦化、组件化、动态性的支持。覆盖了工程师的工程编码期、Apk运行期以及后续运维期的各种问题。 与插件化框架不同的是
使用数据库插入数据时,使用insert会发生因为key值(通常是id)重复的异常。我们当然想通过一个简单的方法:有该数据时则更新,没有该数据时则插入的“有更无插”的方法,在GreenDao有两个方insertOrReplace和save,可两者是有区别的 insertOrReplace:传入的对象
GreenDao是一个优质的开源数据库,每秒支持上千次的增删改查,效率非常高。更多详细介绍:https://github.com/greenrobot/greenDAO 依赖配置 // In your root build.gradle file: buildscript { reposi
Cookie是服务器为客户端分配的一个键值对的表,和Session不同的是Cookie存储在客户端。服务器通过Response.addCookie()为客户端添加Cookie数据,再从Request.getCookie()中获取数据。 在Android开发中,有时我们需要调用HTTP的接口登录帐号,
GitHub:https://github.com/crazycodeboy/TakePhoto 发起TakePhoto //多图 takePhoto.onPickMultiple(limit); takePhoto.onPickMultipleWithCrop(limit, getCropOpt
原因:OkHttp请求回调中response.body().string()只能有效调用一次 在调用response.body().string()方法之后,response中的流就会被关闭,如果我们需要创建出一个新的response给应用层处理。 @Override public Respons
Dexter Github:https://github.com/Karumi/Dexter 依赖引用 implementation 'com.karumi:dexter:5.0.0' 封装调用 DexterPermissionHelper.requestPermissions
ImageLoader简介 Github:https://github.com/nostra13/Android-Universal-Image-Loader 特征 多线程下载图片,图片可以来源于网络,文件系统,项目文件夹assets中以及drawable中等 支持随意的配置ImageLoade
参考:https://bumptech.github.io/glide/doc/generatedapi.html 添加Glide注解处理器依赖 repositories { mavenCentral() } dependencies { annotationProcessor
现有图片框架介绍 Universal-Image-Loader(UIL) GitHub: https://github.com/nostra13/Android-Universal-Image-Loader 最早的图片加载框架 去年9月份停止项目维护 Picasso GitHub: http