在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:qbox-android开源软件地址:https://gitee.com/mirrors/qbox-android开源软件介绍:QBoxtips:前段时间远程数据库造成的问题已修复,现已能正常使用 小秋魔盒(QBox)是一个生活工具 Android App,由 OCN.Yang 开发,第一个版本上线时间:2017.04.11 A life tool App: simple and beautiful, pure, love.(Welcome to Star and Fork) 下载地址 | APK Download:地址一:http://d.firim.info/qbox 应用预览 | UI
Wiki (集成说明)Document | 说明文档 (也可直接查看下面) 本应用集成的各开源库或控件的说明Logger 日志打印Github地址:https://github.com/orhanobut/logger 粗略用法:引入: compile 'com.orhanobut:logger:1.15' 初始化: Logger.init();//在application中 用法方式: Logger.d("hello"); Logger.e("hello"); Logger.w("hello"); Logger.v("hello"); Logger.wtf("hello"); Logger.json(JSON_CONTENT); Logger.xml(XML_CONTENT); Logger.log(DEBUG, "tag", "message", throwable); 参数设置: Logger.init(YOUR_TAG) // default PRETTYLOGGER or use just init() .methodCount(3) // default 2 .hideThreadInfo() // default shown .logLevel(LogLevel.NONE) // default LogLevel.FULL .methodOffset(2) // default 0 .logAdapter(new AndroidLogAdapter()); //default AndroidLogAdapter GsonFormat & Gson json 数据解析GsonFormat Github地址:https://github.com/zzz40500/GsonFormat 引入: compile 'com.google.code.gson:gson:2.7' Gson 用法教程: 地址:http://ocnyang.com/tags/Gson/ butterknife 依赖注入框架Github地址:https://github.com/JakeWharton/butterknife 引入: compile 'com.jakewharton:butterknife:8.4.0'annotationProcessor 'com.jakewharton:butterknife-compiler:8.4.0' leakcanary 内存泄漏检测工具Github地址:https://github.com/square/leakcanary 引入: debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5' releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5' testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5' Glide 图片请求库Github地址:https://github.com/bumptech/glide 引入: compile 'com.github.bumptech.glide:glide:3.7.0'compile 'com.android.support:support-v4:19.1.0' //v4包 Glide 用法教程: 地址:http://ocnyang.com/tags/Glide/ circleimageview 圆形图片库Github地址:https://github.com/hdodenhof/CircleImageView 引入: compile 'de.hdodenhof:circleimageview:2.1.0' Rxjava + Retrofit + okhttp 网络请求框架三个库的地址请自行查找,这里提供一个介绍用法的 Demo 地址 (基本的使用,不做三者的封装(因为目前还找不到好的封装框架)) 引入: compile 'com.squareup.okhttp3:okhttp:3.4.1'compile 'com.squareup.retrofit2:retrofit:2.1.0'compile 'com.squareup.retrofit2:converter-gson:2.1.0'compile 'com.squareup.retrofit2:adapter-rxjava:2.1.0'compile 'io.reactivex:rxjava:1.2.1'compile 'io.reactivex:rxandroid:1.2.1'compile 'com.jakewharton.rxbinding:rxbinding:0.4.0' Okhttp 教程: SlidingTutorial-Android 引导页库Github地址:https://github.com/Cleveroad/slidingtutorial-android 引入: compile 'com.cleveroad:slidingtutorial:1.0.5' nineoldandrolid 开源动画库Github地址:https://github.com/JakeWharton/NineOldAndroids 引入: compile 'com.nineoldandroids:library:2.4.0' percent 百分比布局说明:非本项目使用,貌似引入的某个开源库依赖此库 Github地址:https://github.com/JulienGenoud/android-percent-support-lib-sample 引入: compile 'com.android.support:percent:25.3.0' ReactiveNetwork 手机网络连接状态动态监控Github地址:https://github.com/pwittchen/ReactiveNetwork 引入: compile 'com.github.pwittchen:reactivenetwork-rx2:0.9.0' 设想: 自动显示网络错误的布局的几种设想: picasso 图片请求库Github地址:https://github.com/square/picasso 引入: compile 'com.squareup.picasso:picasso:2.3.2' AndroidImageSlider 轮播图片控件貌似只引入了库,并没有真正使用 Github地址:https://github.com/daimajia/AndroidImageSlider 引入: compile "com.android.support:support-v4:+"compile 'com.squareup.picasso:picasso:2.3.2'compile 'com.nineoldandroids:library:2.4.0'compile 'com.daimajia.slider:library:1.1.5@aar' 才发现,好几个库都是它在依赖呀,由于没有用到,下个版本可能会删除这个引入 BaseRecyclerViewAdapterHelper RecycleView 拓展库Github 地址:https://github.com/CymChad/BaseRecyclerViewAdapterHelper 引入: compile 'com.github.CymChad:BaseRecyclerViewAdapterHelper:VERSION_CODE' 中文 Wiki: greenDAO 数据库Github 地址:https://github.com/greenrobot/greenDAO 引入: 较为繁琐,详细查看 Github 地址 eventbus 事件发布/订阅框架Github 地址:https://github.com/greenrobot/EventBus 引入: compile 'org.greenrobot:eventbus:3.0.0' 用法简述::
Register and unregister your subscriber. For example on Android, activities and fragments should usually register according to their life cycle: @Override public void onStart() { super.onStart(); EventBus.getDefault().register(this); } @Override public void onStop() { super.onStop(); EventBus.getDefault().unregister(this); }
RippleEffect 控件点击的涟漪效果Github 地址:https://github.com/traex/RippleEffect 引入: compile 'com.github.traex.rippleeffect:library:1.3' takephoto 拍照上传库Github 地址:https://github.com/crazycodeboy/TakePhoto 引入: compile 'com.jph.takephoto:takephoto_library:4.0.3' colorpicker 颜色画板选择库Github 地址:https://github.com/QuadFlask/colorpicker 引入: compile 'com.github.QuadFlask:colorpicker:0.0.13' android-autofittextview 自适应大小文本控件Github 地址:https://github.com/grantland/android-autofittextview 引入: compile 'me.grantland:autofittextview:0.2.+' HTextView 动态文本控件Github 地址:https://github.com/hanks-zyh/HTextView 引入: compile 'hanks.xyz:htextview-library:0.1.5' BGAQRCode-Android 二维码扫描项目对比了一些通过Zxing封装的二维码识别的项目,独独比较喜欢这个。 Github 地址:https://github.com/bingoogolapple/BGAQRCode-Android 引入: compile 'com.google.zxing:core:3.2.1'compile 'cn.bingoogolapple:bga-qrcodecore:latestVersion@aar'compile 'cn.bingoogolapple:bga-zxing:latestVersion@aar' MPAndroidChart 图表库Github 地址:https://github.com/PhilJay/MPAndroidChart 引入: //在 Android 开发中使用过图表的,应该都会知道这个库吧。compile 'com.github.PhilJay:MPAndroidChart:v3.0.2' material-calendarview 材料设计日历控件Github 地址:https://github.com/prolificinteractive/material-calendarview 引入: compile 'com.prolificinteractive:material-calendarview:1.4.3' flexbox-layout 官方的盒子布局控件Github 地址:https://github.com/google/flexbox-layout 引入: compile 'com.google.android:flexbox:0.3.0-alpha3' KenBurnsView 视差图片控件Github 地址:https://github.com/flavioarfaria/KenBurnsView 引入: compile 'com.flaviofaria:kenburnsview:1.0.7' materialsearchview 材料设计搜索框Github 地址:https://github.com/MiguelCatalan/MaterialSearchView 引入: compile 'com.miguelcatalan:materialsearchview:1.4.0' 材料设计需要的官方包引入: compile 'com.android.support:cardview-v7:25.1.1'//卡片 MagicIndicator 指示器库Github 地址:https://github.com/hackware1993/MagicIndicator 引入: compile 'com.github.hackware1993:MagicIndicator:1.5.0' 记得鸿洋大神也开源一个差不多的库,也挺不错的。 第三方平台引入集中说明
沉浸式状态栏项目地址:http://blog.csdn.net/lmj623565791/article/details/48649563 注意三点: ToolBar高度设置为wrap_content ToolBar添加属性android:fitsSystemWindows="true" header_just_username.xml的根布局RelativeLayout,添加属性 android:fitsSystemWindows="true" android:fitsSystemWindows这个属性,主要是通过调整当前设置这个属性的view的padding去为我们的status_bar留下空间。 为了Android4.4适配: 如果你希望自己设置状态看颜色,那么就用这个方法: StatusBarCompat.compat(this, getResources().getColor(R.color.status_bar_color)); 关于沉浸式的说明,6.0及以上不能达到半透明的效果。同时沉浸式和夜间模式结合要考虑两方面。 具体差别请看V21/style Android应用自动更新库(android-auto-update)项目地址:https://github.com/feicien/android-auto-update 用法:
SlidingTutorial-Android引导页根据Demo直接使用,可定制的东西很少,当然引导页本身也没什么可定制的, 这个引导页在布局上用到的全是百分比布局 Slidinglayout 果冻弹跳效果依赖nineoldandorid开源动画库 XML样式参数: 常用API: 夜间主题(仿知乎/改变主题的方式)(本应用中还未使用) 博客参考地址:http://www.jianshu.com/p/3b55e84742e5 DayNightActivity的例子的方式是在设置页的的代码方式。 主导航页面(设计思路)(目前应用的问题,个人感觉就是这个设计的有问题) 下面具有导航栏的主体app的设计思路。 这样的好处:能将每个一级功能分类页相互分离开来不相互影响。经过观察和猜想知乎采用的应该是这种方式。这样的方式也能达到和上面一样的效果,同时又解决了Fragment带来的不便。 关于主导航页返回键的监听处理方式: 开源说明本应用是上线应用,在上线之初并未开源,应许多用户和开发者朋友的呼吁后在 GitHub 上开源,因本应用本身就是我个人开发也并无商业性质,为了大家学习和参考应用内各功能的具体实现方式就毫无保留的开源给大家。 因最近为修复部分 bug 在应用市场提交更新版本时,收到了应用市场平台“此APP已被打入盗版库,不予重复更新上传”的通知拒绝更新(想象可能是有人修改此源码重复提交应用上线了)。同时也有部分朋友询问此项目采用的开源协议。基于上面这些情况在这着重强调一下开源说明:
应用详细说明 |
请发表评论