android 開發從入門到精通
Android-Tips
This is an awesome list of tips for android.
If you are a beginner, this list will be the first choice for you when you have a difficult time.
WelcomeStarandFork, your support is my greatest affirmation.
--------------------------------------------------------------------------------
學習 Android 至今,大大小小的坑沒少踩過,慶幸的是,在強大的搜尋引擎與無私奉獻的人們的協助下,那些坑都順利地被填平了。
為了日後在遇到同樣的問題時,能免於再次搜尋帶來的麻煩,我養成了收藏書籤的習慣,隨著書籤(Tips)的日積月累,我想,是時候該有這個項目了。
如果你是個 Android 新人,又不善於搜尋或不知道從何開始,那麼我相信這份列表,將會成為你的首選。
當然,這份列表並不完美,如果不幸,這裡沒有你所踩到的坑,或者對於某個問題你有更好的 Tips,歡迎與大家分享,讓我們一起來維護這個項目!
你可以通過Pull request的形式進行提交,當然也歡迎Star與Fork:)
由於各種問題,給出的連結可能會無法正常訪問。遇到這種情況歡迎大家提交Issue,Contributers 也可以使用Utils裡面的URLChecker來檢測列表裡連結的有效性,你可以選擇更改為新的有效串連,或者把需要梯子的文章以 Markdown 的形式儲存在 Utils/Content 目錄下,並註明原文章連結和作者。
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
•A
ADB
1.Installing ADB on Windows 7
2.Android ADB常用命令
3.Android開發調試工具ADB的使用
4.Android通過Wifi來調試你的應用
5.Adb connection Error:遠程主機強迫關閉了一個現有的串連
Adapter
1.Android簡便通用的SimpleBaseAdapter
2.Android資料配接器(Adapter)最佳化:使用高效的ViewHolder
3.Android 快速開發系列 打造萬能的ListView GridView 適配器
AIDL
1.android處理序間通訊:使用AIDL
2.Android AIDL使用詳解
3.android跨進程通訊(IPC): 使用AIDL
4.Android中的跨進程通訊的實現(一)——遠程調用過程和aidl
5.Android Studio下如何配置AIDL檔案
Android-Async-Http
1.Asynchronous Http Client for Android
2.快速Android開發系列網路篇之Android-Async-Http
3.android-async-http架構庫使用基礎
Android Studio
1.Android Studio匯入項目
2.Android Studio 簡單設定
3.Android Studio 簡介及匯入 jar 包和第三方開源庫方法
4.Android Studio提示系列教程(一)
5.Android Studio中如何使用Git和Github來管理項目
6.Android Studio 權威教程
7.倍數提高工作效率的Android Studio奇技
8.Android Studio 快速鍵(Windows)
9.Android Studio詳細教程匯總
10.Android Studio有什麼奇技淫巧
AQuery
1.AQuery Image Loading
2.Android之使用Android-query架構進行開發(一)
AsyncTask
1.Android AsyncTask完全解析,帶你從源碼的角度徹底理解
2.Android中AsyncTask的簡單用法
3.Android開發人員:你真的會用AsyncTask嗎?
4.深入解析AsyncTask,多例子版
Annotations
1.AndroidAnnotations架構入門教程一之介紹
2.How to stop an animation (cancel() does not work)
--------------------------------------------------------------------------------
B
Bitmap
1.圖片處理
2.Android中自訂布局中載入圖片BitmapFactory.options詳解
3.Android學習筆記進階16之BitmapShader
4.Android 最佳化Bitmap避免OutOfMemoryError
5.Android 非同步載入圖片,使用LruCache和SD卡或手機緩衝,效果非常的流暢
6.Android 開發繞不過的坑:你的 Bitmap 究竟佔多大記憶體?
Broadcast
1.【Android】BroadCast廣播機制應用與執行個體
2.玩轉Android---組件篇---Broadcast Receiver(廣播接收器)
3.【Android】動態註冊廣播接收器
--------------------------------------------------------------------------------
C
Callback
1.How to Define Callbacks in Android?
2.一個經典例子讓你徹徹底底理解java回調機制
3.Java設計模式-回呼函數和觀察者模式
CardView
1.Android5.0新控制項CardView的介紹和使用
2.Android CardView Example
3.Android CardView Widget – Add Cards to a List using RecyclerView
Configuration Change
1.Android Configuration change引發的問題及解決方案
2.Handling Runtime Changes
Context
1.android學習—— context 和 getApplicationContext()
2.Android中Context詳解 ---- 你所不知道的Context
3.Difference between getContext() , getApplicationContext() , getBaseContext() and “this”
CoordinatorLayout
1.CoordinatorLayout與滾動的處理
2.Handling Scrolls with CoordinatorLayout
--------------------------------------------------------------------------------
D
Download
1.Download a file with Android, and showing the progress in a ProgressDialog譯文
2.Java 伺服器端支援斷點續傳的原始碼【支援快車、迅雷】
3.Java 多線程斷點下載檔案
4.Android 後台Service下載 (一)
5.Android網路編程 --斷點續傳下載檔案
6.android 多線程斷點續傳下載 一
Dagger
--------------------------------------------------------------------------------
E
EventBus
1.EventBus使用詳解(一)——初步使用EventBus
2.快速Android開發系列通訊篇之EventBus
3.Android EventBus實戰 沒聽過你就out了
--------------------------------------------------------------------------------
F
Fragment - 片段
1.Android Fragment完全解析,關於片段你所需知道的一切
2.Android Fragment 你應該知道的一切
3.Android系列之Fragment(二)----Fragment的生命週期和返回棧
4.處女男學Android(九)---Fragment進階篇之Fragment生命週期和回退棧
5.Fragment筆記整理
6.Android實戰技巧:Fragment的那些坑
7.android Fragments詳解四:管理fragment
8.Android Fragment 嵌套使用(Nested Fragments)
FlowLayout - 自訂流布局
1.Android 自訂ViewGroup - 實現FlowLayout - 本文出自【張鴻洋的部落格】
--------------------------------------------------------------------------------
G
Glide
1.Glide 一個專註於平滑滾動的圖片載入和緩衝庫
2.Google推薦的圖片載入庫Glide介紹
Gradle
1.用Gradle 構建你的android程式
2.Android Studio系列教程四--Gradle基礎
3.使用Gradle構建Android項目
4.使用Gradle管理你的Android Studio工程
5.靈活強大的構建系統Gradle
6.Gradle Android Could not find method testPackage()
7.Android Studio 1.0 Gradle Error with getConfiguration()
8.Android打包的那些事
9.深入理解Android之Gradle
10.gradle build fails on lint task
11.“Gradle Version 2.10 is required.” Error
greenDao
1.ORM 架構之 greenDAO 使用心得
2.SQLite資料庫架構ORMLite與GreenDao的簡單比較
3.在AndoridStudio中引入GreenDAO
GridView
1.Android入門第八篇之GridView(九宮圖)
2.用Volley讓GridView載入網狀圖片
3.Add space to top and bottom of GridView
--------------------------------------------------------------------------------
H
Hotfix
1.Android熱更新實現原理
2.Android App 線上熱修複方案
3.Nuwa
Handler
1.Handler和他的小夥伴們
I
ImageView
1.[Android] ImageView.ScaleType設定圖解
Immersive Full-Screen Mode
1.Using Immersive Full-Screen Mode譯文
Intent
1.Android系列教程之十:Intents and Intent Filters(一)
2.Android高手進階教程(十七)之---Android中Intent傳遞對象的兩種方法(Serializable,Parcelable)!
3.Intent filter 關於Action、Category屬性詳解---附帶執行個體源碼
4.startActivityForResult用法詳解
5.Android 開發筆記——通過 Intent 傳遞類對象
--------------------------------------------------------------------------------
J
Java 8
1.Modern Java - A Guide to Java 8
2.Java8系列 - Java8簡明指南
Json
1.Android系列---JSON資料解析
2.android json解析及簡單例子
3.Android開源庫--GsonGoogle官方json解析庫
4.DataContract4A-簡化Json解析與產生
JNI
1.Hello JNI
--------------------------------------------------------------------------------
K
Kotlin
1.Kotlin Programming Language
2.Kotlin中文網站
3.使用Kotlin進行Android開發
--------------------------------------------------------------------------------
L
ListFragment
1.Android App組件之ListFragment -- 說明和樣本
2.Android 使用ListFragment顯示列表
ListView
1.在Activity中響應ListView內部按鈕的點擊事件
Log
1.Logger工具類
2.KLog
--------------------------------------------------------------------------------
M
MessageDigest
1.Java利用MessageDigest擷取字串或檔案MD5詳解
2.類 MessageDigest
Material Design
1.Google Material Design: Everything You Need to Know
2.An exploration in Material Design
3.謝Google大神傳我動畫設計30年功力
4.Codelab for Android Design Support Library used in I/O Rewind Bangkok session
MVP
1.淺談 MVP in Android
2.Android中的MVP
3.開源項目Philm的MVP架構分析
4.一種在android中實現MVP模式的新思路
5.?說說Android的MVP模式
--------------------------------------------------------------------------------
N
NavigationView
1.Easy Navigation Drawer with Design Support Library
Notification
1.Android——Notifications筆記
2.Android學習之Notification的簡單使用
--------------------------------------------------------------------------------
O
ORMLite
1.Android 快速開發系列 ORMLite 架構最佳實務
2.Android ORM架構之 ORMLite
OkHttp
1.開源項目OkHttpPlus——支援GET、POST、UI線程回調、JSON格式解析、鏈式調用、檔案上傳下載
2.Android OkHttp完全解析 是時候來瞭解OkHttp了
--------------------------------------------------------------------------------
P
Parcelable
1.Android中Parcelable介面用法
PackageManager
1.Android中擷取應用程式(包)的資訊-----PackageManager的使用(一)
2.【Android】擷取手機中已安裝apk檔案資訊(PackageInfo、ResolveInfo)(應用圖片、應用程式名稱、包名等)
3.Android擷取已安裝應用資訊(表徵圖,名稱,版本號碼,包)
4.關於android 如何安裝 assets檔案下的apk
Palette
1.Extracting Colors to a Palette with Android Lollipop
2.Android Lollipop 新特性 - Palette
Preference
1.PreferenceActivity(喜好設定設定頁)
2.Android的設定介面及Preference使用
Picasso
1.Picasso官方網站及javadoc
2.Android圖片下載快取庫picasso解析
--------------------------------------------------------------------------------
R
React Native
1.React Native for Android 入門老虎
2.React Native For Android初體驗
Reference
1.Java的引用StrongReference、 SoftReference、 WeakReference 、PhantomReference
2.Java 7之基礎 - 強引用、弱引用、軟引用、虛引用
RecyclerView
1.RecyclerView使用詳解(一)
2.Android RecyclerView 使用完全解析 體驗藝術般的控制項
3.A Guide to Android RecyclerView and CardView
4.Android-RecyclerView-Item點擊事件設定
5.Why doesn't RecyclerView have onItemClickListener()? And how RecyclerView is different from Listview?
6.Create RecyclerView with multiple view type
7.Simple RecyclerView Divider
Retrofit
RxJava
1.RxJava: Reactive Extensions for the JVM
2.給 Android 開發人員的 RxJava 詳解
3.NotRxJava懶人專用指南
RandomAccessFile
1.Java RandomAccessFile用法
--------------------------------------------------------------------------------
S
SearchView
1.詳細解讀Android中的搜尋方塊(三)—— SearchView
Serializable
1.Android系統中Parcelable和Serializable的區別
2.Android: Difference between Parcelable and Serializable?
Service
1.Android Service完全解析,關於服務你所需知道的一切(上)
2.ExecutorService 的理解與使用
3.Android基本功:IntentService的使用
4.Android基礎筆記(十一)- Service基礎和注意事項以及Activity與Service的通訊
SharedPreference
1.Android SharedPreferences使用以及原理詳解
2.Google為何這樣設計OnSharedPreferenceChangeListener
3.SharedPreferences在多進程中的使用及注意事項
SparseArray
1.Android應用效能最佳化之使用SparseArray替代HashMap
2.Android SparseArray
3.Android效能最佳化之使用SparseArray代替HashMap
4.HashMap的實現與最佳化
SQLite
1.Android中SQLite應用詳解
2.ANDROID開發之SQLite詳解
3.使用嵌入式關係型SQLite資料庫儲存資料
4.Android將資料庫儲存到SD卡的實現
Support Library
1.Android Support相容包詳解
2.Android各個Support Library介紹
3.Android Support Library 23.1的變化
SwipeRefreshLayout
1.Android SwipeRefreshLayout
2.下拉重新整理之 swipeRefreshLayout
--------------------------------------------------------------------------------
T
Textview
1.Remove underline from links in TextView
2.What is the default text size on Android?
3.Which unit of measurement does the Paint.setTextSize(float) use?
4.How to set unit for Paint.setTextSize()
5.Android Center text on canvas
TouchEvent
1.兩分鐘徹底讓你明白Android中onInterceptTouchEvent與onTouchEvent(圖文)!
2.MotionEvent事件在onInterceptTouchEvent()、onTouchEvent()中的行程順序
3.Android Deeper(00) - Touch事件分發響應機制
Thread
1.ThreadPoolExecutor運轉機制詳解
2.ThreadPoolExecutor使用和思考(上)-線程池大小設定與BlockingQueue的三種實現區別
3.Java並發編程:Callable、Future和FutureTask
4.Java 7之多線程線程池 - Callable和Future
5.Java 7之多線程線程池 - 線程池原理(1)
6.Android線程間互動(Java synchronized & Android Handler)
7.Android--多線程之Handler
8.Java(Android)中線程池的使用
9.Java(Android)線程池
--------------------------------------------------------------------------------
U
Unit Test
1.Android單元測試
2.Don’t Test Blindly: The Right Methods for Unit Testing Your Java Apps
3.在Android Studio中進行單元測試和UI測試
--------------------------------------------------------------------------------
V
ViewPager
1.Android ViewPager使用詳解
2.ViewPager + Fragment實現滑動標籤頁
3.【移動開發】Android中Fragment+ViewPager的配合使用
4.Android 手把手教您自訂ViewGroup(一)本文出自:【張鴻洋的部落格】
5.Android的坑之ScrollView嵌套ViewPager
View
1.Android LayoutInflater原理分析,帶你一步步深入瞭解View(一)
2.Android中View繪製流程以及invalidate()等相關方法分析
3.Android中measure過程、WRAP_CONTENT詳解以及xml布局檔案解析流程淺析(上)
4.Android開發:LayoutParams的用法
5.Saving Android View state correctly
ViewFlipper
1.Android ViewFlipper的流量分析
2.Android 滑動效果入門篇(一)—— ViewFlipper
VideoView
1.Android--使用VideoView播放視頻
2.Playing a video in VideoView in Android
3.Position Video Inside a VideoView
Volley
1.Android Volley
2.Android Volley完全解析(一),初識Volley的基本用法
3.Android庫Volley的使用介紹
4.網路請求庫Volley詳解
5.Volley 源碼解析
6.使用okHttp、Volley、Gson快速組裝HttpClinet
--------------------------------------------------------------------------------
W
WebView
1.WebView詳解
2.Java 與 JavaScript 如何進行互動
3.Android與js互動執行個體
4.Android中Java和JavaScript互動
5.頂部帶進度條的Webview
6.Android WebView播放視頻問題
7.理解WebKit和Chromium: Android 4.4 上的Chromium WebView
8.在WebView中如何讓JS與Java安全地互相調用
9.Android WebView的Js對象注入漏洞解決方案
--------------------------------------------------------------------------------
Others
Code Style
1.Java編程規範
2.Android 命名規範 (提高代碼可以讀性)
3.Code Style Guidelines for Contributors
--------------------------------------------------------------------------------
Git
1.Pro Git
2.GitHub秘籍
3.git - 簡易指南
4.基於Github參與開源項目指南
5.使用git和github進行協同開發流程
6.如何高效利用GitHub
7.廖雪峰的GIT入門教程
8.GitHub&Git入門基礎
9.git-flow 備忘清單
--------------------------------------------------------------------------------
JCenter
1.Android Studio發布項目到Jcenter
2.將Library上傳到Jcenter
3.使用Gradle發布aar項目到JCenter倉庫
反編譯
1.android_smali文法學習
2.apk的包名修改
3.為Sublime Text安裝smali代碼文法高亮外掛程式
4.Android APK反編譯詳解(附圖)
5.Android開發學習總結(六)—— APK反編譯
6.我是如何使用Android反編譯軟體的?
7.Android程式的反編譯對抗研究
--------------------------------------------------------------------------------
設計模式
1.Java開發中的23種設計模式詳解
2.MVC,MVP 和 MVVM 的圖示
3.如果讓我重新設計一款Android App
4.一個人如何開發一款 App?
5.Android應用架構 (Android Dev Summit 2015)
6.Android源碼設計模式分析項目
--------------------------------------------------------------------------------
夜間模式
1.Android Night Mode 夜間模式實現
2.Android夜間模式實現
3.Android 中 知乎日報和知乎設定夜間模式是怎麼樣做到不重啟Activity的?
--------------------------------------------------------------------------------
自訂控制項
1.Android 自訂View及其在布局檔案中的使用樣本
2.自訂控制項進階:declare-styleable重用attr
3.android 自訂控制項 使用declare-styleable進行配置屬性(源碼角度)
4.Android使用AttributeSet自訂控制項的方法
5.從源碼中淺析Android中如何利用attrs和styles定義控制項
6.Android SDK: Creating Custom Views
7.Creating custom and compound Views in Android - Tutorial
8.Tutorial: Enhancing Android UI with Custom Views
9.Android 自訂View (一)
10.What does postInvalidate() do?
11.When it's necessary to execute invalidate() on a View?
12.Android筆記:invalidate()和postInvalidate() 的區別及使用
--------------------------------------------------------------------------------
No category
1.THE DEX 64K LIMIT IS NOT A PROBLEM ANYMORE, ALMOST
2.Android 4.4從圖庫選擇圖片,擷取圖片路徑並裁剪
3.淺析android應用增量升級
4.Android四大基本組件介紹與生命週期
5.Android代碼最佳化——使用Android lint工具
6.Android 外掛程式化 動態升級
7.Java String StringBuilder StringBuffer
8.tools:context=".MainActivity的作用
9.關於APK瘦身值得分享的一些經驗
10.效能最佳化之資料庫最佳化
11.How to check visibility of software keyboard in Android?
12.android 4.4.4側滑退出顯示app啟動介面?
13.How to get a Color from hexadecimal Color String
14.【譯】Android應用架構
15.Android靜默安裝實現方案,仿360手機小幫手秒裝和Aactive Setup功能
16.How to convert a color integer to a hex String in Android?
17.IllegalArgumentException: width and height must be > 0 while loading Bitmap from View
18.Unable to instantiate application com.android.tools.fd.runtime.BootstrapApplication ?