Android开发学习androidandroid

(二十)Android App开发推荐几个gitHub上排名靠前

2018-04-08  本文已影响1829人  为自己代颜_

1.Banner gitHub上5000多颗星
现在的绝大数app都有banner界面,实现循环播放多个广告图片和手动滑动循环等功能。因为ViewPager并不支持循环翻页, 所以要实现循环还得需要自己去动手,我就把项目中的控件剔了出来,希望大家觉得有用。目前框架可以进行不同样式、不同动画设置, 以及完善的api方法能满足大部分的需求了。

dependencies{
    compile 'com.youth.banner:banner:1.4.10'  //最新版本
}

详细请看:https://github.com/youth5201314/banner

  1. BaseRecyclerViewAdapterHelper gitHub上13000多颗星
    BRVAH是一个强大的RecyclerAdapter框架(什么是RecyclerView?),它能节约开发者大量的开发时间,集成了大部分列表常用需求解决方案。为什么会有它?请查看「Android开源框架BRVAH由来篇」该框架于2016年4月10号发布的第1个版本到现在已经一年多了,经历了800多次代码提交,140多次版本打包,修复了1000多个问题,获得了9000多star,非常感谢大家的使用以及反馈。
    dependencies {
            compile 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.30'
    }

gitHub地址:https://github.com/CymChad/BaseRecyclerViewAdapterHelper

3.FlycoDialog_Master gitHub上将近2000多颗星
一个强大的Android对话框库,简化自定义对话框.支持2.2+.各种分享弹窗效果
apk下载地址:https://fir.im/mj9p
语法简单几行代码全部搞定
gitHub地址:https://github.com/H07000223/FlycoDialog_Master

4.SmartRefreshLayout gitHub上将近1万1千颗星
下拉刷新、上拉加载、二级刷新、淘宝二楼、RefreshLayout、OverScroll,Android智能下拉刷新框架,支持越界回弹、越界拖动,具有极强的扩展性,集成了几十种炫酷的Header和 Footer。
gitHub地址:https://github.com/scwang90/SmartRefreshLayout

5.沉浸式框架框架:gitHub上3000多颗星
android 4.4以上沉浸式状态栏和沉浸式导航栏管理,包括状态栏字体颜色,一句代码轻松实现,以及对bar的其他设置,尤其解决4.4以下兼容性问题一行代码直接搞定

compile 'com.gyf.barlibrary:barlibrary:2.3.0'

gitHub地址:https://github.com/gyf-dev/ImmersionBar

6.webview框架:AgentWeb gitHub上3000多颗星
AgentWeb 是一个基于的 Android WebView ,极度容易使用以及功能强大的库,提供了 Android WebView 一系列的问题解决方案 ,并且轻量和极度灵活

compile 'com.just.agentweb:agentweb:4.0.2' // (必选)
 compile 'com.just.agentweb:download:4.0.2' // (可选)
 compile 'com.just.agentweb:filechooser:4.0.2'// (可选) 

gitHub地址: https://github.com/Justson/AgentWeb

7.自定义View之垂直翻页公告栏文字各种提示效果 gitHub上2000多颗星
俗名:可垂直跑、可水平跑的跑马灯
学名:可垂直翻、可水平翻的翻页公告
Gradle:

compile 'com.sunfusheng:marqueeview:<latest-version>'

应用实例可参考gitHub地址:https://github.com/sfsheng0322/MarqueeView

  1. 图片选择器框架 :gitHub上将近4000颗星
    一款针对android平台下的图片选择器,支持从相册或拍照选择图片或视频、音频,支持动态权限获取、裁剪(单图or多图裁剪)、压缩、主题自定义配置等功能、适配android 6.0+系统的开源图片选择框架。
    应用实例可参考gitHub地址: https://github.com/LuckSiege/PictureSelector

9.基于RxJava2的RxBus2. 主要用于发送事件/订阅事件.类似EventBus. 支持Kotlin

dependencies {
    compile 'com.github.MFlisar:RxBus2:0.2'
}
// Send an event to the bus - all observers that observe this class WITHOUT a key will receive this event
RxBus.get().send(new TestEvent());

// boundObject... can be for example your activity
RxBusBuilder.create(TestEvent.class)
    // this enables the queuing mode! Passed object must implement IRXBusQueue interface, see the demo app for an example
    .withQueuing(rxBusQueue)
    .withBound(this)
    .subscribe(new Consumer<TestEvent>() {
        @Override
        public void accept(TestEvent s) {
            // activity IS resumed, you can safely update your UI for example
         }
    });
// call this for example in your activities onDestroy or wherever appropriate to unsubscribe ALL subscriptions at once that are bound to the boundOBject
RxDisposableManager.unsubscribe(this);

可参考gitHub地址:https://github.com/MFlisar/RxBus2

10.# Android-PickerView
gitHub上7000多颗星
一款仿iOS的PickerView控件,有时间选择器和选项选择器,新版本的详细特性如下:
——TimePickerView 时间选择器,支持年月日时分,年月日,年月,时分等格式。
——OptionsPickerView 选项选择器,支持一,二,三级选项选择,并且可以设置是否联动 。
gradle 依赖

compile 'com.contrarywind:Android-PickerView:4.1.3'

gitHub地址:https://github.com/Bigkoo/Android-PickerView

有其它好用的框架大家有推荐的可以及时提出来 我会整理更新和大家一起分享,谢谢😄。

上一篇下一篇

猜你喜欢

热点阅读