android 優秀框架整理(轉)

程序員界有個神奇的網站,那就是github,這個網站集合了一大批優秀的開源框架,極大地節省了開發者開發的時間,在這里我進行了一下整理,這樣可以使我們在使用到時快速的查找到,希望對大家有所幫助!

轉自?http://www.lxweimin.com/p/5feab1ef12a2?

1. Retrofit

一句話介紹:Retrofit是一款類型安全的網絡框架,基于HTTP協議,服務于Android和java語言

上榜理由:Retrofit以21.8k的stars量雄踞github中android子標題榜首,第一當之無愧。

官網地址http://square.github.io/retrofit/

githubhttps://github.com/square/retrofit

作者:square團隊

使用:

compile'com.squareup.retrofit2:retrofit:2.3.0'

2.okhttp

一句話介紹:okhttp是一款基于HTTP和HTTP2.0協議的網絡框架,服務于java和android客戶端

上榜理由,okhttp以20.4k的 stars量雄踞github中android子標題第二名。大型公司比如淘寶也封裝的是okhttp。Retrofit2.0開始內置okhttp框 架,Retrofit專注封裝接口完成業務需求,okhttp專注網絡請求的安全高效,筆者將兩者區分開,是想讓后來學習者知道,這是兩套框架,學習框架 原理時可以分開學習,以免理解混亂。

官網地址http://square.github.io/okhttp/

githubhttps://github.com/square/okhttp

作者:square團隊

使用:

compile'com.squareup.okhttp3:okhttp:3.8.0'

3.View Binding

一句話介紹:在Android開發中,findViewById()是必不可少的存在,這樣的冗余代碼在很久以前充斥在Android工程中,因此也出現了很多精簡方案,view Binding 就是其中優秀的一種

上榜理由,Butter Knife框架是17年前后很火的存在。但是在Kotlin中直接使用ButterKnife的注解方式的話,會出現空指針的異常并導致綁定失敗。從而Kotter Knife應運而生,可以理解成是Butter Knife的Kotlin版本。然而這種方案已經被作者標記為Deprecated,作者認為該框架為每個視圖引用分配了一個對象,這種思路不應該被采用,以及使用這種思路的框架也應該被淘汰,并推薦使用ViewBinding的方式。github start 19.5k.

官網地址:https://developer.android.google.cn/topic/libraries/view-binding

github :?https://github.com/android/architecture-components-samples/tree/main/ViewBindingSample

csdn 使用指南:https://blog.csdn.net/seu_calvin/article/details/105733379

作者:?google官方

4. glide

一句話介紹:glide是一款專注于提供流暢劃動能力的“圖片加載和緩存框架”

上榜理由:15.9k個star,圖片加載類框架排名第一的框架,google 在2014開發者大會上演示的camera app就是基于gilde框架開發的

githubhttps://github.com/bumptech/glide

作者 Bump Technologies團隊

使用:

repositories{

? mavenCentral()

? google()

}?

dependencies {??

implementation'com.github.bumptech.glide:glide:4.11.0'

annotationProcessor'com.github.bumptech.glide:compiler:4.11.0'

}

4-1.glide-transformations

一句話介紹:為眾多著名圖片加載框架提供圖片形狀變幻能力的框架?

上榜理由:在榜單靠前的部分已經介紹過glide,Picasso,Fresco等圖片加載框架,glide-transformations就是一款為他們提供圖片變形能力的框架,使用起來非常簡單,因此受到了大家的喜愛,github上有9.3K個star?

github:https://github.com/wasabeef/glide-transformations

作者:Daichi Furiya?

使用:

implementation'jp.wasabeef:glide-transformations:4.3.0'

//If you want to use the GPU Filters

implementation'jp.co.cyberagent.android:gpuimage:2.1.0'

在Glide里設置變幻效果

Glide.with(this).load(R.drawable.demo)? .apply(RequestOptions.bitmapTransform(BlurTransformation(25,3)))? .into(imageView)

5.leakcanary

一句話介紹:一款內存檢測框架,服務于java和android客戶端

上榜理由:方便,簡潔是leakcanary最大的特點,只需在應用的apllication中集成,就可以直接使用它;15.5k個star說明了它有多么受歡迎

githubhttps://github.com/square/leakcanary

相關博客 :https://www.cnblogs.com/aademeng/articles/11218921.html

作者 square團隊

使用:

dependencies{???

debugImplemdebugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5.4'

? releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'

?}

在 Application 中onCreate()中寫入

public class App extends Application {

??? @Override

??? public void onCreate() {

??????? super.onCreate();

??????? if (LeakCanary.isInAnalyzerProcess(this)) {

??????????? return;

??????? }

??????? LeakCanary.install(this);

??? }

}

6.EventBus

一句話介紹:EventBus是一款本地組件間通信框架

上榜理由:組件間通信框架star量第 一:23.2k,在大型項目的Activities,fragments,Threads,Services都可以看到它的使用場景,盡管 EventBus在向未創建的組件傳遞事件時有些局限,僅適合在“活著的”組件間傳遞消息,但仍不妨礙它活躍在各個大型項目各個場景里。

官網地址http://greenrobot.org/eventbus/documentation/how-to-get-started/

github:https://github.com/greenrobot/EventBus

作者 greenrobot

使用:

implementation'org.greenrobot:eventbus:3.2.0'

7.zxing

一句話介紹:條碼圖像處理庫

上榜理由:如果你用過二維碼,你肯定已經間接使用過大名鼎鼎的zxing了。27.2K的star量,如果你有了解二維碼的需求,不妨從了解、修改它源碼入手。

githubhttps://github.com/zxing/zxing

作者 Sean Owen

8.picasso

一句話介紹:強力的圖片下載、緩存框架

上榜理由:github start 17.9k,本榜單出現的第三款圖片類框架,不同的是picasso更強調圖片下載,你可以將picasso集成進你的項目中,你也可以結合gilde和UIL與picasso,三者一齊封裝至你的項目中,按需所用。

官網地址http://square.github.io/picasso/

githubhttps://github.com/square/picasso

作者 square團隊

使用:

compile'com.squareup.picasso:picasso:2.5.2'

9.lottie-android

一句話介紹:一款可以在Android端快速展示Adobe Afeter Effect(AE)工具所作動畫的框架

上榜理由:動畫類框架第一名,github上 13.3k個star證明了他的優越性,利用json文件快速實現動畫效果是它最大的便利,而這個json文件也是由Adobe提供的After Effects(AE)工具制作的,在AE中裝一個Bodymovin的插件,使用這個插件最終將動畫效果生成json文件,這個json文件即可由 LottieAnimationView解析并生成絢麗的動畫效果。而且它還支持跨平臺喲。

githubhttps://github.com/airbnb/lottie-android

作者:Airbnb 團隊

10.AndroidAutoSize 屏幕適配

一句話介紹:非常方便快捷的屏幕適配方案

上榜理由:github上11.4k個star,今日頭條屏幕適配方案終極版,一個極低成本的 Android 屏幕適配方案).

官網地址

https://hub.fastgit.org/JessYanCoding/AndroidAutoSize

作者 JessYanCoding

使用:

step1

dependencies {

implementation'me.jessyan:autosize:1.2.1'

}

step 2? (360 *640 對應ui設計的1080*1920)

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? <manifest>

? ? <application>? ? ? ? ? ?

? ? ? ? <meta-data

? ? ? ? ? ? android:name="design_width_in_dp"

? ? ? ? ? ? android:value="360"/>

? ? ? ? <meta-data

? ? ? ? ? ? android:name="design_height_in_dp"

? ? ? ? ? ? android:value="640"/>? ? ? ? ?

? ?? </application>? ? ? ? ?

</manifest>

11.SlidingMenu

一句話介紹:側滑菜單欄框架

上榜理由:與Userval-Image- loader 齊名的上古神器框架——為你的app提供側滑菜單欄的功能;github閃更有11.2k個star,證明了它的經久不衰,即使在Google推出了 NavigationDrawer,仍然沒有減少開發者對SildingMenu的擁簇,經典總是經得起考驗的,這個上古神獸已經四年沒有更新了;有太多 太多的app使用過它,這些都可以在軟件的開源許可上看到!

githubhttps://github.com/jfeinstein10/SlidingMenu

作者 Jeremy Feinstein

使用:

在gihub上fork源碼,集成進項目中

12. MaterialDrawer

一句話介紹:強大的塑料風格的抽屜框架

上榜理由:11.3K的star數量,作者的持續更新狀態,如果你還在猶豫上手SlidingMenu遇到bug沒人管的困境,那么你可以入手它作為你的抽屜布局

githubhttps://github.com/mikepenz/MaterialDrawer

作者:Mike Penz

使用:?implementation"com.mikepenz:materialdrawer:${lastestMaterialDrawerRelease}"

13.PhotoView

一句話介紹:一款ImageView展示框架,支持縮放,響應手勢

上榜理由:10.3k的star數量,位于圖 片類框架排行榜第五位,PhotoView與前四位不同的是這次帶來的是圖片的展示能力,你一定好奇微信的頭像點擊放大是如何實現的,很多App的圖片顯 示響應手勢按壓是如何實現的,了解PhotoView,你一定會開心的!(筆者也不會告訴你ImageView的點擊放大效果在Android的 sample也有)

githubhttps://github.com/chrisbanes/PhotoView

作者:chrisbanes

使用:

在app根目錄的build.gradle中加入:allprojects {? ? repositories {? ? ? ? maven { url"https://jitpack.io"}? ? }}在app的module目錄的build.gralde中加入:dependencies {? ? compile'com.github.chrisbanes:PhotoView:latest.release.here'}

PhotoView photoView = (PhotoView) findViewById(R.id.photo_view);photoView.setImageResource(R.drawable.image);

14.XXPermissions?

一句話介紹:一句代碼搞定權限請求,從未如此簡單

上榜理由,1.9k的start數量,簡單好用

githubhttps://github.com/getActivity/XXPermissions

作者 :Android輪子哥

使用

android {

//支持 JDK 1.8compileOptions {?

?targetCompatibilityJavaVersion.VERSION_1_8

sourceCompatibilityJavaVersion.VERSION_1_8}}

dependencies {

https://github.com/getActivity/XXPermissionsimplementation'com.hjq:xxpermissions:9.8'

}

15.AppUpdate

一句話介紹:一個簡單、輕量、可隨意定制的Android版本更新庫

上榜理由,1.2k的start 位于更新類排名第三的位置,簡單輕量。

githubhttps://github.com/azhon/AppUpdate

作者 :azhon

使用?implementation'com.azhon:appupdateX:3.0.3'

DownloadManagermanager=DownloadManager.getInstance(this);

manager.setApkName("appupdate.apk")? ? ? ? .setApkUrl("https://raw.githubusercontent.com/azhon/AppUpdate/master/apk/appupdate.apk")? ? ? ? .setSmallIcon(R.mipmap.ic_launcher)? ? ? ? .download();

16.MMKV

一句話介紹:用來替代SharePreference的高性能key-value組件

上榜理由,GitHub 11.9k 的start ,擁有數據加密 多進程共享 匿名內存,效率更高,支持從SP遷移

githubhttps://github.com/Tencent/MMKV

作者 騰訊團隊

使用??implementation'com.tencent:mmkv-static:1.2.7'

17?SmartRefreshLayout

一句話介紹:下拉刷新、上拉加載、二級刷新、淘寶二樓、RefreshLayout、OverScroll,Android智能下拉刷新框架,支持越界回彈、越界拖動,具有極強的擴展性,集成了幾十種炫酷的Header和 Footer

上榜理由 github 22.2k的start,擁有廣泛的使用群體,頭部可定制刷新動畫。

githubhttps://github.com/scwang90/SmartRefreshLayout

作者?scwang90

使用

AndroidX 先在 gradle.properties 中添加,兩行都不能少噢~

android.useAndroidX=true

android.enableJetifier=true

implementation 'androidx.appcompat:appcompat:1.0.0'? ? ? ? ? ? ? ? //必須 1.0.0 以上

implementation? 'com.scwang.smart:refresh-layout-kernel:2.0.3'? ? ? //核心必須依賴

implementation? 'com.scwang.smart:refresh-header-classics:2.0.3'? ? //經典刷新頭

18.XPopup

一句話介紹:XPopup2.0版本重磅來襲,2倍以上性能提升,帶來可觀的動畫性能優化和交互細節的提升!!!功能強大,交互優雅,動畫絲滑的通用彈窗!可以替代Dialog,PopupWindow,PopupMenu,BottomSheet,DrawerLayout,Spinner等組件,自帶十幾種效果良好的動畫, 支持完全的UI和動畫自定義!

上榜理由:GitHub 5.5K的收藏量,其中的彈窗類型涵蓋了99%的應用場景。

github:https://github.com/li-xiaojun/XPopup

作者:li-xiaojun

使用:

dependencies {? ? implementation'com.lxj:xpopup:2.2.23'}

19.fastjson

一句話介紹:一款基于json解析、生成的框架

上榜理由:從它的名字不難看出,快速是它最大的特性,阿里巴巴的出身保證了代碼的質量和優越,9.4k的star數量,也是榜單里第一個出現的中國開源框架,涉及網絡的app都會用到json,fastjson值得作為你的首選!

githubhttps://github.com/alibaba/fastjson

作者:alibaba

使用:

compile'com.alibaba:fastjson:1.1.58.android'

20 ImmersionBar

一句話介紹:android 4.4以上沉浸式狀態欄和沉浸式導航欄管理,適配橫豎屏切換、劉海屏、軟鍵盤彈出等問題,可以修改狀態欄字體顏色和導航欄圖標顏色

上榜理由 :github 9.4k個start, Activity、Fragment、DialogFragment、Dialog,PopupWindow,一句代碼輕松實現,以及對bar的其他設置

githubhttps://github.com/gyf-dev/ImmersionBar

作者 gyf-dev

使用

implementation'com.gyf.immersionbar:immersionbar:3.0.0'//基礎依賴包,必須要依賴

implementation'com.gyf.immersionbar:immersionbar-components:3.0.0'//fragment快速實現(可選)

20.Material-Animations

一句話介紹:一款提供場景轉換過渡能力的動畫框架

上榜理由:Android動畫框架排行榜第二 名,9.3k個star數量,與動畫框架榜單第一名lottie-android不同的是,Material-Animations提供的是場景切換的動 畫效果。Android 官網sample中已經提供了部分Transition (轉場動畫)的展示,作為初學者很難快速拓展到自己項目中,Material-Animations的示例出現為開發者省去了此類麻煩,直接照搬應用到自 己的App中吧。

githubhttps://github.com/lgvalle/Material-Animations

作者:Luis G. Valle

使用:

down源碼,修改學習

21.tinker

一句話介紹:它是微信官網的Android熱補丁解決方案

上榜理由:9.1k個star,微信在用的熱補丁方案,心動不如行動

官網地址http://www.tinkerpatch.com/Docs/intro

githubhttps://github.com/Tencent/tinker

作者:Tencent

22.ViewPagerIndicator

一句話介紹:一款基于ViewPager的頁面指示器開源框架

上榜理由:上古神器,盡管已經五年未更新了,但你仍然可以在淘寶等app中看到它的使用場景,8.9K的star量讓它不慍不火的在矗立在榜單里

官網地址http://viewpagerindicator.com/

githubhttps://github.com/JakeWharton/ViewPagerIndicator

作者:JakeWharton

使用:

下載 地址https://github.com/JakeWharton/Android-ViewPagerIndicator/zipball/master

23.AndroidSwipeLayout

一句話介紹:非常強大滑動式布局

上榜理由:滑動刪除是國產app常見需求,商品詳情的上下滑動需求作為開發者的我們也經常遇到,AndroidSwipeLayout在github上擁有12K個star,證明它經受住了檢驗,各位值得一試

githubhttps://github.com/daimajia/AndroidSwipeLayout

作者:daimajia

使用:

dependencies {??

implementation'com.android.support:recyclerview-v7:21.0.0'

implementation'com.android.support:support-v4:20.+'

implementation"com.daimajia.swipelayout:library:1.2.0@aar"}

24.BaseRecyclerViewAdapterHelper

一句話介紹:強大、流暢的Recyvlerview通用適配器

上榜理由:如果你是RecyclerView的擁簇者,你一定要體驗這款專門服務該view的適配器,7.7K個star,讓這個家伙位于github上Android 適配器排行榜第一,還有很多驚喜等你去探尋!

官網地址:http://www.recyclerview.org/

githubhttps://github.com/CymChad/BaseRecyclerViewAdapterHelper

作者:陳宇明以及他的小伙伴

使用:

allproallprojects {

? ? repositories {

? ? ? ? ...

? ? ? ? maven { url 'https://jitpack.io' }

? ? }

}

dependencies {

? ? implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4'

}

25.SuspensionIndexBar

一句話介紹:仿美團選擇城市、微信通訊錄、餓了么點餐列表的導航懸停分組索引列表。

上榜理由:gitbub 1.8k的start 足以讓我們去嘗試入手

github:https://github.com/mcxtzhang/SuspensionIndexBar

作者 :mcxtzhang

使用? compile 'com.github.mcxtzhang:SuspensionIndexBar:V1.0.0'

26.CircleImageView

一句話介紹:圓角ImageView

上榜理由:也許你已經聽說過無數種展示圓角圖片的方法,但如果你不嘗試嘗試CircleImageView,那么你的知識庫會因為少了它黯然失色,有的時候完成需求是開發者優先考慮的,不同實現方法牽扯到的性能差異更值得讓人深思,如果你有心在圖片性能上有所涉獵,那么CircleImageView絕對不會讓你敗興而歸。最后別忘了記得去看Romain Guy的建議喲。

githubhttps://github.com/hdodenhof/CircleImageView

作者:Henning Dodenhof

使用:

dependencies {...compile'de.hdodenhof:circleimageview:2.1.0'}

27.logger

一句話介紹:一款讓log日志優雅顯示的框架

上榜理由:logger作為調試框架,并未給 出很強大的能力,它最大的亮點是優雅的輸出log信息,并且支持多種格式:線程、Json、Xml、List、Map等,如果你整日沉迷于汪洋大海般的 log信息不能自拔,logger就是你的指路明燈!6.6k個star讓他位列調試框架第二名,屈居facebook的stetho之后

githubhttps://github.com/orhanobut/logger

作者:Orhan Obut

使用:

compile'com.orhanobut:logger:2.1.1'

28.AndroidSlidingUpPanel

一句話介紹:可拖動的滑動面板視圖框架

上榜理由:如果你的項目需要一個可拖拽的滑動式面板(展示某些詳情信息,播放音樂,地圖信息等),那么推薦你使用它,9.2k個star,來自創業公司umano的作品,證明它是用心推出的杰作

githubhttps://github.com/umano/AndroidSlidingUpPanel

作者:umano

使用:

dependencies {? ? repositories {? ? ? ? mavenCentral()? ? }? ? compile'com.sothree.slidinguppanel:library:3.4.0'}

29.AppIntro

一句話介紹:一款提供快速制作歡迎頁的框架

上榜理由:筆者從未把打算把歡迎頁框架納入排 行榜當中,作為國內開發者,ViewPager開發App的歡迎頁已經是手到擒來的需求,為何一個開源的歡迎頁框架會在github上擁有6.3k個 star?也許你會不屑一顧,是的,往往就在不屑一顧的瞬間,機遇就悄悄溜走了。

githubhttps://github.com/apl-devs/AppIntro

作者:Paolo Rotolo

allprojects {? ? ? ? repositories {...maven { url'https://jitpack.io'}? ? ? ? }? ? }? ? dependencies {? ? ? ? ? ? compile'com.github.apl-devs:appintro:v4.2.0'}

30.recyclerview-animators

一句話介紹:一款為Recyclerview提供擴展動畫能力的框架

上榜理由:有一句老話:如果有天你失去對新事 物的興趣,那就說明你老了。recyclerview已經推出快三年了,還在用listview的人們,是否已經發掘自己漸漸變老;不要灰心,快為你的項 目加入recyclerview-animators框架吧,為“自己”加入新鮮的血液和能量!(筆者備注:6.2K個star)

githubhttps://github.com/wasabeef/recyclerview-animators

作者;wasabeef

使用:

dependencies {// jCentercompile'jp.wasabeef:recyclerview-animators:2.2.6'}

31.uCrop

一句話介紹:一款優雅的圖片裁剪框架

上榜理由:5.3K個star,圖片編輯模塊單獨拎出來也是一款優雅的App。

githubhttps://github.com/Yalantis/uCrop

作者:Yalantis

使用:

allprojects {?? repositories {? ? ? jcenter()? ? ? maven { url"https://jitpack.io"}?? }}compile'com.github.yalantis:ucrop:2.2.1'

32.Luban

一句話介紹:最接近微信的圖片壓縮框架

上榜理由:好的思路總是可以讓你大放異彩,Luban僅以圖片壓縮單一功能,俘獲了4.8K個star,證明了它在圖片壓縮上的造詣,它可能不是最優秀的,但它是讓你我最接近偉大的項目

githubhttps://github.com/Curzibn/Luban

作者:Curzibn

使用:

compile'top.zibin:Luban:1.1.1'

33.Apktool

一句話介紹:一款反編譯apk的工具

上榜理由:開源的反編譯工具,對于志在了解apk逆向破解的諸位,值得擁有,4.5k個star,逆向破解apk神器!

githubhttps://github.com/iBotPeaches/Apktool

官網地址:https://ibotpeaches.github.io/Apktool/

作者:Connor Tumbleson

34 Linkage-RecyclerView

一句話介紹?android 實現仿美團點菜和京東分類導航 一行代碼即可接入,二級聯動訂餐列表

上榜理由 :github 2.6k的start 足已引起你的注意。

github :https://github.com/KunMinX/Linkage-RecyclerView

作者;KunMinX

使用:

implementation'com.kunminx.linkage:linkage-recyclerview:2.3.5'

35?DKVideoPlayer

一句話介紹:安卓視頻播放器,封裝MediaPlayer,ExoPlayer,IjkPlayer。模仿抖音并實現預加載,列表播放,懸浮播放,廣告播放,彈幕

上榜理由:github 3.3k的start 功能多使用方便

github :https://github.com/Doikki/DKVideoPlayer

作者:Doikki

36DiscreteScrollView

一句話介紹: 制作畫廊圖片效果控件,簡單

上榜理由:一個字,簡單好用。github start:5.4k

github:https://github.com/yarolegovich/DiscreteScrollView

作者:Yaroslav

使用:implementation?'com.yarolegovich:discrete-scrollview:1.5.1'

?<com.yarolegovich.discretescrollview.DiscreteScrollView?

android:id="@+id/picker"

android:layout_width="match_parent"

?android:layout_height="wrap_content"?

?app:dsv_orientation="horizontal|vertical" />

37SimpleRatingBar

一句話介紹: 可以自由設置RatingBar 的大小,選中顏色 ,未選中顏色,邊框顏色,是否隱藏邊框。最重要的一點,就是不會因為設置大小,而影響觸摸設置星星。(系統的RatingBar ,除非自定義,否則設置小風格后無法觸摸設置星星)

上榜理由: 不在需要繁瑣的自定義RatingBar? ,并且此控件還可以設置星星圓角。可謂是功能齊全。git start:1k?

github :https://hub.fastgit.org/FlyingPumba/SimpleRatingBar

相關博客: 待寫

作者:FlyingPumba?

使用? compile'com.iarcuschin:simpleratingbar:0.1.5'

android:layout_width="wrap_content"

? ? android:layout_height="wrap_content"

? ? app:srb_starSize="12dp" //設置星星的大小

? ? app:srb_numberOfStars="5" //默認星星總數量

? ? app:srb_rating="3" //選中星星數量

? ? app:srb_stepSize="0.5"? ?//星星增長的幅度

????app:srb_drawBorderEnabled="false" //是否顯示邊框

? ? app:srb_starBorderWidth="0.1" //邊框尺寸

? ? app:srb_borderColor="@color/merchantRattingProgressTintColor" //邊框顏色

? ? app:srb_starCornerRadius="1"? //星星 圓角 默認為6

? ? app:srb_fillColor="@color/merchantRattingProgressTintColor"? //星星顏色

? ? app:srb_starBackgroundColor="@color/merchantProgressBackgroundTintColor" //未選中星星顏色

? ? app:srb_isIndicator="false" //是否阻止點擊

? ? />

38 Android-PickerView?

? ? 一句話介紹:年月日三級聯動?

????上榜理由:12.7k start 快速實現年月日,省市區 三級聯動 。

GitHub :https://hub.fastgit.org/Bigkoo/Android-PickerView

作者:bigkoo

相關博客: GitHub上介紹和使用已經很詳細

使用 :implementation'com.contrarywind:Android-PickerView:4.1.9'

39?PictureSelector

一句話介紹: 頭像修改 選擇相冊和拍照 超簡單搞定

上榜理由:10.4Start ,使用簡單,可擴展性強。代碼量少,幾行代碼實現單圖,多圖,裁剪和拍照。

Github :https://hub.fastgit.org/LuckSiege/PictureSelector

作者:LuckSiege

相關博客 :https://blog.csdn.net/Luck_mw/article/details/54020510?spm=1001.2014.3001.5501

使用:implementation'io.github.lucksiege:pictureselector:v2.7.2'

作者:拖小殼兒

鏈接:http://www.lxweimin.com/p/c962d80ca776

來源:簡書

著作權歸作者所有。商業轉載請聯系作者獲得授權,非商業轉載請注明出處。

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容