-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 新增组件 AsyncActivityLayoutLoader 可以提前完成异步的 BaseActivity 或 BaseFragment 布局加载; 使用方法:在 App 初始化时:`AsyncActivityLayoutLoader.preCreateActivityLayoutCache(AdapterTestActivity.class);` 即可,剩下的都是全自动的。 此工具会执行布局的预载,在BaseActivity或BaseFragment使用到布局时直接取已经实例化好的布局View,因为是异步的不影响未完成预载的布局加载,未完成预载的界面依然将执行正常的主线程布局加载流程。 6.9.0.1 update - ViewController 新增适用于 LinearLayout.LayoutParams 的方法 `set/getWeight(...)`、`set/getGravity(...)`、适用于 RelativeLayout.LayoutParams 的方法 `get/addRule(...)`、`(int[])getRules()`。 6.9.0 update - 新增工具 ViewController,可以通过它快捷的为 view 获取/设置宽高、内外边距等操作; 使用方法:`ViewController.of(view).setMarginHorizontal(px).setPaddingTop(px);` - BaseActivity 和 BaseFragment 新增 `createView(int layoutResId)` 方法以通过布局资源 id 快捷构建 view 实例; - 跳转参数 JumpParameter 的默认 `(Any)get(key)` 方法不再需要强转类型,将自动适配变量类型, 例如:`Bitmap result = parameter.get("参数2")` 而无需:`Bitmap result = (Bitmap)parameter.get("参数2")`; - JumpParameter 支持从 json 文本或者已有的 Map 构建,也支持通过 `toJsonString()` 一键输出为 json 文本,方便在必要时存储参数内容; - BaseFragment 新增 jump(cls, view...) 多元素衔接跳转方法;
- Loading branch information
Showing
3 changed files
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters