1
- # UIWidget
1
+ # FastLib
2
2
--------------------------
3
- ### 一、 简介:
3
+ ## 简介:
4
4
5
- 一个集成[ UIAlertView] ( https://github.com/AriesHoo/UIAlertView ) 、[ UIActionSheetView] ( https://github.com/AriesHoo/UIActionSheetView ) 、[ UIProgressView] ( https://github.com/AriesHoo/UIProgressView ) 、[ RadiusView] ( https://github.com/AriesHoo/RadiusView ) 、[ TitleBarView] ( https://github.com/AriesHoo/TitleBarView )
6
- 等项目常用UI库
5
+ 一个Android项目级快速开发框架,节约大部分写常用功能时间以实现更多项目业务功能及体验上的优化.在[ RapidLib] ( https://github.com/MarnoDev/RapidLib ) 基础上加以大的修改与扩展.有问题欢迎issue。
7
6
8
- [[ Sample PC Download]] ( https://github.com/AriesHoo/UIWidget /blob/master/apk/sample.apk )
7
+ [[ Sample PC Download]] ( https://github.com/AriesHoo/FastLib /blob/master/apk/sample.apk )
9
8
10
- [[ Sample Mobile Download]] ( http://fir.im/r84v )
9
+ [[ Sample Mobile Download]] ( http://fir.im/hju8 )
11
10
12
- ![ ] ( https://github.com/AriesHoo/UIWidget /blob/master/apk/qr.png )
11
+ ![ ] ( https://github.com/AriesHoo/FastLib /blob/master/apk/qr.png )
13
12
14
- ** 1.1 Gradle集成**
13
+ ** Gradle集成**
15
14
16
15
```
17
16
allprojects {
@@ -24,32 +23,90 @@ allprojects {
24
23
25
24
```
26
25
dependencies {
27
- //compile 'com.github.AriesHoo:UIWidget :1.6 .0'
28
- compile 'com.github.AriesHoo:UIWidget :${LATEST_VERSION}'
26
+ //compile 'com.github.AriesHoo:FastLib :1.0 .0'
27
+ compile 'com.github.AriesHoo:FastLib :${LATEST_VERSION}'
29
28
}
30
29
```
31
- ### 二、录屏预览
32
30
33
- ![ ] ( https://github.com/AriesHoo/UIWidget/blob/master/screenshot/widget.gif )
31
+ ** 包含第三方库 **
34
32
35
- [ UIAlertView] ( https://github.com/AriesHoo/UIAlertView )
36
-
37
- ![ ] ( https://github.com/AriesHoo/UIWidget/blob/master/screenshot/alert.gif )
38
-
39
- [ UIActionSheetView] ( https://github.com/AriesHoo/UIActionSheetView )
40
-
41
- ![ ] ( https://github.com/AriesHoo/UIWidget/blob/master/screenshot/action.gif )
42
-
43
- [ UIProgressView] ( https://github.com/AriesHoo/UIProgressView )
44
-
45
- ![ ] ( https://github.com/AriesHoo/UIWidget/blob/master/screenshot/loading.gif )
46
-
47
- [ RadiusView] ( https://github.com/AriesHoo/RadiusView )
33
+ ```
34
+ dependencies {
35
+ def supportVersion = "25.3.1"
36
+ compile 'com.android.support:appcompat-v7:'.concat(supportVersion)
37
+ compile 'com.android.support:recyclerview-v7:'.concat(supportVersion)
38
+ //图片加载
39
+ compile 'com.github.bumptech.glide:glide:4.0.0'
40
+ annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0'
41
+ //日志打印
42
+ compile 'com.orhanobut:logger:2.1.1'
43
+ //注解
44
+ compile 'com.jakewharton:butterknife:8.8.0'
45
+ //retrofit+rxjava
46
+ compile 'io.reactivex:rxjava:1.1.6'
47
+ compile 'io.reactivex:rxandroid:1.2.1'
48
+ compile 'com.squareup.retrofit2:retrofit:2.1.0'
49
+ compile 'com.squareup.retrofit2:converter-gson:2.1.0'
50
+ compile 'com.squareup.retrofit2:adapter-rxjava:2.1.0'
51
+ compile 'com.google.code.gson:gson:2.8.1'
52
+ //万能适配器
53
+ compile 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.27'
54
+ //滑动返回Activity
55
+ compile 'cn.bingoogolapple:bga-swipebacklayout:1.1.0@aar'
56
+ //快速Tab库
57
+ compile 'com.flyco.tablayout:FlycoTabLayout_Lib:2.1.2@aar'
58
+ //多状态视图切换
59
+ compile 'com.github.MarnonDev:EasyStatusView:v1.0.3'
60
+ //常用UI控件(TitleBarView、RadiusView等)
61
+ compile 'com.github.AriesHoo:UIWidget:1.6.0'
62
+ //下拉刷新库
63
+ compile 'com.scwang.smartrefresh:SmartRefreshLayout:1.0.3'
64
+ //页面事件交互
65
+ compile 'org.simple:androideventbus:1.0.5.1'
66
+ //webView库
67
+ compile 'com.just.agentweb:agentweb:1.2.6'
68
+ }
69
+ ```
48
70
49
- ![ ] ( https://github.com/AriesHoo/UIWidget/blob/master/screenshot/radius.gif )
71
+ ## 实现功能
72
+
73
+ * [ RxActivity] ( https://github.com/AriesHoo/FastLib/blob/master/library/src/main/java/com/aries/library/fast/basis/RxActivity.java ) 与[ RxFragment] ( https://github.com/AriesHoo/FastLib/blob/master/library/src/main/java/com/aries/library/fast/basis/RxFragment.java ) 分别为FastLib所有Activity/Fragment基类: Retrofit 请求与Activity、Fragment生命周期绑定,需要手动调用bindLifeCycle()方法
74
+ * Basis开头是通用基类:[ BasisActivity] ( https://github.com/AriesHoo/FastLib/blob/master/library/src/main/java/com/aries/library/fast/basis/BasisActivity.java ) 和[ BasisFragment] ( https://github.com/AriesHoo/FastLib/blob/master/library/src/main/java/com/aries/library/fast/basis/BasisFragment.java )
75
+ * Fast开头的是快速创建常见功能页面:[FastMainActivity](https://github.com/AriesHoo/FastLib/blob/master/library/src/main/java/com/aries/library/fast/module/activity/FastMainActivity.java)-快速创建包含tab主Activity;[FastTitleActivity](https://github.com/AriesHoo/FastLib/blob/master/library/src/main/java/com/aries/library/fast/module/activity/FastTitleActivity.java)-快速创建包含TitleBarView的Activity;[FastRefreshLoadActivity](https://github.com/AriesHoo/FastLib/blob/master/library/src/main/java/com/aries/library/fast/module/activity/FastRefreshLoadActivity.java)-快速创建包含TitleBarView及下拉刷新、多状态切换的Activity;[FastWebActivity](https://github.com/AriesHoo/FastLib/blob/master/library/src/main/java/com/aries/library/fast/module/activity/FastWebActivity.java)快速创建应用内webView的Activity;[FastTitleFragment](https://github.com/AriesHoo/FastLib/blob/master/library/src/main/java/com/aries/library/fast/module/fragment/FastTitleFragment.java)-快速创建包含TitleBarView的Fragment;[FastRefreshLoadFragment](https://github.com/AriesHoo/FastLib/blob/master/library/src/main/java/com/aries/library/fast/module/fragment/FastRefreshLoadFragment.java)-快速实现下拉刷新的Fragment;[FastTitleRefreshLoadFragment](https://github.com/AriesHoo/FastLib/blob/master/library/src/main/java/com/aries/library/fast/module/fragment/FastTitleRefreshLoadFragment.java)-快速实现包含TitleBarView及下拉刷新与多状态切换Fragment
76
+ * [ FastApplication] ( https://github.com/AriesHoo/FastLib/blob/master/library/src/main/java/com/aries/library/fast/FastApplication.java ) :快速配置ToastUtil及滑动关闭Activity的Application可以根据需要继承(需要滑动关闭Activity需要参考初始化)
77
+ * Manager类是三方库二次封装:目前有[ GlideManager] ( https://github.com/AriesHoo/FastLib/blob/master/library/src/main/java/com/aries/library/fast/manager/GlideManager.java ) -图片加载库Glide库封装;[ LoggerManager] ( https://github.com/AriesHoo/FastLib/blob/master/library/src/main/java/com/aries/library/fast/manager/LoggerManager.java ) -日志打印logger库封装;[ RxJavaManager] ( https://github.com/AriesHoo/FastLib/blob/master/library/src/main/java/com/aries/library/fast/manager/RxJavaManager.java ) -RxJava实现timer;[ TabLayoutManager] ( https://github.com/AriesHoo/FastLib/blob/master/library/src/main/java/com/aries/library/fast/manager/TabLayoutManager.java ) -FlycoTabLayout+ViewPager使用:包括CommonTabLayout、SlidingTabLayout、SegmentTabLayout在FragmentActivity与Fragment中使用的封装
78
+ * Util类为常用工具:[ ActivityStackUtil] ( https://github.com/AriesHoo/FastLib/blob/master/library/src/main/java/com/aries/library/fast/util/ActivityStackUtil.java ) -应用Activity栈管理类;[ AppUtil] ( https://github.com/AriesHoo/FastLib/blob/master/library/src/main/java/com/aries/library/fast/util/AppUtil.java ) -部分应用常用功能类;[ SizeUtil] ( https://github.com/AriesHoo/FastLib/blob/master/library/src/main/java/com/aries/library/fast/util/SizeUtil.java ) -尺寸转换类;[ SPUtil] ( https://github.com/AriesHoo/FastLib/blob/master/library/src/main/java/com/aries/library/fast/util/SPUtil.java ) -SharedPreferences使用类;[ TimeFormatUtil] ( https://github.com/AriesHoo/FastLib/blob/master/library/src/main/java/com/aries/library/fast/util/TimeFormatUtil.java ) -时间转换类;[ ToastUtil] ( https://github.com/AriesHoo/FastLib/blob/master/library/src/main/java/com/aries/library/fast/util/ToastUtil.java ) -单例模式toast工具类:可配置是否后台显示
79
+ * Delegate为代理类:[ FastTitleDelegate] ( https://github.com/AriesHoo/FastLib/blob/master/library/src/main/java/com/aries/library/fast/delegate/FastTitleDelegate.java ) -快速实现包含TitleBarView的Fragment/Activity;[ FastRefreshLoadDelegate] ( https://github.com/AriesHoo/FastLib/blob/master/library/src/main/java/com/aries/library/fast/delegate/FastRefreshLoadDelegate.java ) -快速实现下拉刷新、上拉加载更多、多状态切换的Fragment/Activity
80
+ * 创建支持手势返回的Activity:继承BasisActivity一行代码实现-参考[ SwipeBackActivity] ( https://github.com/AriesHoo/FastLib/blob/master/app/src/main/java/com/aries/library/fast/demo/module/sample/SwipeBackActivity.java )
81
+ * 沉浸式状态栏:继承FastTitleActivity/FastRefreshLoadActivity/FastWebActivity/FastTitleFragment/FastTitleRefreshLoadFragment 无需额外代码即可实现
82
+ * 状态栏白底黑字模式:同沉浸式状态栏功能继承,只需重写父类实现接口isLightStatusBarEnable即可实现;MIUI V6、Flyme 4.0、Android 6.0以上
83
+ * 快速创建圆角、全圆、按下、不可点击状态的EditText、FrameLayout、LinearLayout、RelativeLayout、TextView减少shape文件创建设置:参考库[ UIWidget] ( https://github.com/AriesHoo/UIWidget ) 或简化版库[ RadiusView] ( https://github.com/AriesHoo/RadiusView )
84
+ * Activity/Fragment 页面事件交互(支持设置TAG)
85
+ * 万能适配器(ListView、GridView,RecyclerView):可添加多个Header和Footer
86
+ * Fragment懒加载,Activity可见时加载
87
+ * 下拉刷新、上拉加载:支持多种效果的刷新头及自定义刷新头
88
+
89
+ ## 注意事项
90
+
91
+ ## 录屏预览
92
+
93
+ ![ ] ( https://github.com/AriesHoo/FastLib/blob/master/screenshot/00.gif )
94
+
95
+ ## 鸣谢
96
+
97
+ * [ ButterKnife-注解] ( https://github.com/JakeWharton/butterknife )
98
+ * [ Glide-图片加载] ( https://github.com/bumptech/glide )
99
+ * [ Logger-日志打印] ( https://github.com/orhanobut/logger )
100
+ * [ BaseRecyclerViewAdapterHelper-万能适配器] ( https://github.com/CymChad/BaseRecyclerViewAdapterHelper )
101
+ * [ FlycoTabLayout-快速Tab] ( https://github.com/H07000223/FlycoTabLayout )
102
+ * [ SmartRefreshLayout-智能刷新] ( https://github.com/scwang90/SmartRefreshLayout )
103
+ * [ BGABanner-Android-Banner图] ( https://github.com/bingoogolapple/BGABanner-Android )
104
+ * [ BGASwipeBackLayout-滑动返回Activity] ( https://github.com/bingoogolapple/BGASwipeBackLayout-Android )
105
+ * [ EasyStatusView-多状态视图切换] ( https://github.com/MarnoDev/EasyStatusView )
106
+ * [ UIWidget-常用UI库] ( https://github.com/AriesHoo/UIWidget )
107
+ * [ AndroidEventBus-页面事件交互] ( https://github.com/hehonghui/AndroidEventBus )
108
+ * [ AgentWeb-原生WebView快速集成库] ( https://github.com/Justson/AgentWeb )
50
109
51
- [ TitleBarView] ( https://github.com/AriesHoo/TitleBarView )
52
110
53
- ![ ] ( https://github.com/AriesHoo/UIWidget/blob/master/screenshot/title.gif )
54
111
55
112
0 commit comments