1 屏幕適配
1.1:今日頭條的適配方案,適配dp
https://blog.csdn.net/u013000152/article/details/80855315
注意:建議采用375dp衣赶,而不是750dp诊赊。因為會導(dǎo)致系統(tǒng)的彈窗寬高大小也跟著改變,例:采用750dp時府瞄,系統(tǒng)的復(fù)制粘貼會變小碧磅。
1.2:直接填寫設(shè)計圖上的像素尺寸,適配px
https://github.com/hongyangAndroid/AndroidAutoLayout
2 自定義toast
http://www.reibang.com/p/4a37c61697dd
3 網(wǎng)絡(luò)請求與gson解析
3.1 網(wǎng)絡(luò)請求okhttp3 使用攔截器-interceptor可打印日志
http://www.reibang.com/p/da4a806e599b
3.2 interceptor攔截器form表單請求參考
http://www.reibang.com/p/3af806782a01?open_source=weibo_search
3.3 Gson-排除策略
https://blog.csdn.net/sunrainamazing/article/details/80975153
3.4 AndroidX遷移
https://blog.csdn.net/tuike/article/details/95937072
3.5 OkHttp常用詳解
http://www.reibang.com/p/aaa87e8ad9eb
4 Activity管理遵馆,包括退出登錄
http://www.reibang.com/p/6148aec5a7f5
5 狀態(tài)欄
5.1 StatusBarUtil
https://github.com/laobie/StatusBarUtil
5.2 沉浸式狀態(tài)欄
https://www.imooc.com/article/292777
5.3 狀態(tài)欄適配 第三方
https://github.com/gyf-dev/ImmersionBar
6 首頁
6.1 tab主界面
http://www.reibang.com/p/e95a07330a89
6.2 加抽屜效果DrawerLayout
https://blog.csdn.net/yechaoa/article/details/91452474
手勢開關(guān)
mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_UNLOCKED); //打開手勢滑動
mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED);
7 實現(xiàn)漸變+圓角+點擊效果
https://blog.csdn.net/a1742226589/article/details/106133960
8 文本處理
8.1 TextView 中顯示 HTML
https://zhuanlan.zhihu.com/p/27830863
8.2 超過兩行顯示成....
android:lines="2" android:ellipsize="end"
8.3 Android TextView部分文字實現(xiàn)點擊事件
https://blog.csdn.net/mq2553299/article/details/78033581
8.4 ClickableSpan 去除下劃線
https://blog.csdn.net/kk217777/article/details/51679707
8.5 設(shè)置字體樣式正常鲸郊,粗體,斜體货邓,粗斜體
https://blog.csdn.net/qq_26420489/article/details/79931364
8.6 在java代碼中設(shè)置TextView的字體大小秆撮,單位設(shè)為sp
https://blog.csdn.net/weixin_30878501/article/details/98195745
8.7 設(shè)置中粗
http://www.reibang.com/p/849145cf1077
8.8 標簽列表控件
https://github.com/donkingliang/LabelsView
9 倒計時CountDownTimer
http://www.reibang.com/p/bb99a414c659
10 圖片
10.1 glide加載網(wǎng)絡(luò)圖片、頭像
https://blog.csdn.net/weixin_39654467/article/details/81043864
注意 Android 9.0開始 http請求默認失敗换况。
臨時方案清單配置文件追加:android:usesCleartextTraffic="true"
10.2 圖片放大
https://github.com/iielse/ImageWatcher
10.3 圓角圖片
implementation 'com.github.SheHuan:NiceImageView:1.0.5'
11 登錄頁按鈕被鍵盤遮擋
https://www.cnblogs.com/taixiang/p/10091883.html
12 本地持久化存儲职辨,生成bean轉(zhuǎn)json保存到SharedPreferences
http://www.reibang.com/p/fffd1e6b9e55
13 一個可拖動的View
https://blog.csdn.net/user11223344abc/article/details/75805566
14 實現(xiàn)陰影效果
http://p.codekk.com/detail/5b0b7010fd1c9b26e2fcb529
15 Android 代碼中如何將dp,sp轉(zhuǎn)成px
https://blog.csdn.net/qq_35749683/article/details/84646708?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-3.compare&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-3.compare
16 一個支持多種狀態(tài)的自定義View:加載中視圖盗蟆、錯誤視圖、空數(shù)據(jù)視圖舒裤、網(wǎng)絡(luò)異常視圖喳资、內(nèi)容視圖
https://github.com/qyxxjd/MultipleStatusView
17 RecyclerView
17.1 第三方的RecyclerView Adapter
http://www.reibang.com/p/b343fcff51b0
17.2 ScrollView嵌套RecyclerView滑動沖突解決(解決滑動邊界有陰影問題android:overScrollMode="never")
http://www.reibang.com/p/5dfc90656665
17.3 RecyclerView更新數(shù)據(jù)和定位到最底部
https://blog.csdn.net/flamejack/article/details/52004053?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase
17.4 RecyclerView 監(jiān)聽滾動到底部
https://blog.csdn.net/qq_31387043/article/details/79863852
18 Dialog
18.1 底部Dialog彈窗
http://www.mamicode.com/info-detail-2026143.html
18.2 Dialog 寬度占滿全屏
https://blog.csdn.net/b1480521874/article/details/87726091
19 進度條
19.1 Android 圓形進度條控件
http://www.reibang.com/p/93d9a2a65bde
19.2 IndicatorSeekBar滑動顯示進度氣泡指示器
https://github.com/warkiz/IndicatorSeekBar
implementation 'com.github.warkiz.widget:indicatorseekbar:2.1.2'
//備用:https://github.com/Jay-Goo/RangeSeekBar
//備用:https://github.com/woxingxiao/BubbleSeekBar
19.2
http://www.reibang.com/p/beb19f770e68
20 動畫
20.1 Android5.0Activity的轉(zhuǎn)場動畫、過渡動畫腾供、過場動畫仆邓、跳轉(zhuǎn)動畫
https://blog.csdn.net/w630886916/article/details/78319502
20.2 android5.0 水波紋點擊效果
http://www.reibang.com/p/7d2a8a5836e0
20.3 animateLayoutChanges布局內(nèi)view狀態(tài)改變動畫
http://www.dovov.com/androidanimatelayoutchanges.html
21 Android----復(fù)制到剪切板
http://www.reibang.com/p/1e84d33154bd
22 build.gradle配置
22.1 渠道與環(huán)境配置
http://www.reibang.com/p/c11862136abf
22.2 打包名稱規(guī)則
https://blog.csdn.net/u011272795/article/details/83991334
23 用CardView實現(xiàn)圖片圓角
http://www.reibang.com/p/17afa5997768
注意要設(shè)置app:cardBackgroundColor="#00000000",不然會有虛邊
24 Android啟動頁出現(xiàn)白屏台腥、黑屏的解決方案
https://www.jb51.net/article/130850.htm
25 MagicIndicator指示器
25.1 Android-指示器-MagicIndicator的使用
http://www.reibang.com/p/af69d289e32c
25.2 MagicIndicator使用中遇到的坑
https://blog.csdn.net/qq_40837613/article/details/100058592
26 視頻播放器
26.1 騰訊播放器-注意代碼混淆
https://cloud.tencent.com/document/product/881/20213
26.2 用來測試的小視頻地址集
http://www.reibang.com/p/d5f00ad58572
26.3 VideoView 實現(xiàn)引導(dǎo)頁播放視頻歡迎效果
https://www.cnblogs.com/liguangsunls/p/7228377.html
26.4 錄制視頻
https://github.com/werbhelius/MediaUtils
26.5 使用Camera SurfaceView預(yù)覽出現(xiàn)圖案形變等問題解決總結(jié)
https://blog.csdn.net/u013597998/article/details/50437206
26.6 解決安卓10獲取外部存儲權(quán)限問題宏赘,導(dǎo)致播放本地視頻文件錯誤。
https://blog.csdn.net/qin_peng123/article/details/109218665
27 語音識別-科大訊飛
https://www.xfyun.cn/doc/asr/voicedictation/Android-SDK.html#_1%E3%80%81%E7%AE%80%E4%BB%8B
28 顯示Loading動畫
https://blog.csdn.net/zhangphil/article/details/81943106
29 下拉刷新
https://github.com/scwang90/SmartRefreshLayout
30 Android:檢測網(wǎng)絡(luò)狀態(tài)&監(jiān)聽網(wǎng)絡(luò)變化
http://www.reibang.com/p/983889116526
31 Android 時間工具DateUtil
https://blog.csdn.net/qq_16430735/article/details/49181669
32 EventBus 消息通信
https://github.com/greenrobot/EventBus
33 Android中保持屏幕常亮的方法:
https://www.cnblogs.com/sparrowlhl/p/11249004.html
34 [android獲取狀態(tài)欄高度為0的解決辦法]
https://www.cnblogs.com/renkangke/archive/2013/05/27/3101375.html
35 第三方權(quán)限判斷
35.1 XXPermissions
https://github.com/getActivity/XXPermissions
35.2 PermissionsDispatcher
https://github.com/permissions-dispatcher/PermissionsDispatcher
35.3 RxPermissions
https://github.com/tbruyelle/RxPermissions
36 java保留兩位小數(shù)4種方法
https://www.cnblogs.com/Renyi-Fan/p/7643764.html
37 CoordinatorLayout流行效果
https://blog.csdn.net/m0_37667770/article/details/79900125
38 輪播圖
https://github.com/youth5201314/banner
https://blog.csdn.net/zhenliang5553/article/details/81197407
implementation 'com.youth.banner:banner:1.4.10'
39 圖表
https://github.com/PhilJay/MPAndroidChart
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
40 藍牙工具
https://github.com/Jasonchenlijian/FastBle
implementation 'com.clj.fastble:FastBleLib:2.3.4'