个人收藏用
加載pdf
https://blog.csdn.net/duke618/article/details/82661466
Android 和h5交互
https://www.cnblogs.com/huihuizhang/p/8794377.html
Activity 使用另一個(gè)Activity 里的方法
https://www.jianshu.com/p/4807e50b316d
掃碼
https://blog.csdn.net/yuzhiqiang_1993/article/details/52805057
時(shí)間戳
https://www.cnblogs.com/dava/p/6416648.html
https://hndeveloper.github.io/2017/github-android-ui.html#DownloadView這個(gè)不錯(cuò)呀
下載
https://blog.csdn.net/chaoyu168/article/details/53787157
隨機(jī)數(shù)
https://blog.csdn.net/xinpengfei521/article/details/72810890
瀏覽器下載
https://blog.csdn.net/yingtian648/article/details/79128663/
ScrollView + ListView
https://blog.csdn.net/Falcon2000/article/details/83716756
SharePreferences
https://blog.csdn.net/BoomLei/article/details/80914723
webView攔截url
https://blog.csdn.net/Juns_619930524/article/details/76046322
https://blog.csdn.net/zxc024000/article/details/90298159
比對(duì)工具
Beyond Compare
gridview 和scrollview嵌套
https://www.cnblogs.com/awkflf11/p/5061981.html
BadgeView (徽章控件)
微信登錄
https://blog.csdn.net/u014078990/article/details/83752223
glide 圓形圖
https://blog.csdn.net/jiaosheng1/article/details/91972559
https://www.jianshu.com/p/76bc9642b207
TextView超出某個(gè)字?jǐn)?shù)限制后顯示省略號(hào)
https://blog.csdn.net/Sky_327/article/details/103696970
自定義gridView仿頭條頻道拖動(dòng)管理
https://blog.csdn.net/u014763302/article/details/103682923
android自定義view系列之仿滴滴大頭針效果
https://blog.csdn.net/MingJieZuo/article/details/103686725
WebView添加Header
https://blog.csdn.net/qugengting/article/details/95636121
webview緩存
https://www.jianshu.com/p/6575304281a1
Android 驗(yàn)證碼輸入框
https://www.jianshu.com/p/3238a5afc21c
極光
https://blog.csdn.net/qq_39716839/article/details/80939321
popwindow
https://blog.csdn.net/PZ0605/article/details/23654825
arr 導(dǎo)入問題
https://blog.csdn.net/runstoppable/article/details/72743888?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase
打包沖突
https://www.jianshu.com/p/89c732e1c8a8
混淆
https://www.jianshu.com/p/a8a2e3f1ca60
webview 加載網(wǎng)頁只有聲音沒有圖像
https://www.cnblogs.com/qianyukun/p/4792533.html
webview返回
https://www.jianshu.com/p/654ecec54cb0
圖片選擇器
https://blog.csdn.net/u010356768/article/details/79026565
https://blog.csdn.net/u010356768/article/details/83783623
glide 圖片加載自適應(yīng)寬高
https://www.jianshu.com/p/d174f21e606d
listview中播放視頻
https://www.it610.com/article/1292111724962455552.htm
七牛上傳視頻后的封面圖
https://blog.csdn.net/qq379682421/article/details/88909887
圖片全屏預(yù)覽
https://www.jianshu.com/p/188be22e1306
頭像重疊
https://www.jianshu.com/p/c1375c62f9c3
多圖顯示
https://blog.csdn.net/lv_fq/article/details/77800928
8.0透明度問題
https://cloud.tencent.com/developer/article/1175324
fragment監(jiān)聽返回鍵
https://blog.csdn.net/jifenglie/article/details/86573135
AS誤刪除的文件找回
https://blog.csdn.net/djyjava/article/details/52151317
Webview 重定向和 net::ERR_UNKNOWN_URL_SCHEME 解析及解決方案
https://blog.csdn.net/qq_41188773/article/details/89669354
android webview中視頻播放及全屏
https://www.jianshu.com/p/54ac34790db0
WebView 跨域訪問Cookie身份認(rèn)證丟失
http://www.45fan.com/article.php?aid=19111422767224954623278517
RecyclerView 橫向滑動(dòng)
https://blog.csdn.net/qq_30730419/article/details/108400746
漸變
https://blog.csdn.net/chengxu_kuangrexintu/article/details/78543602
BaseQuickAdapter多布局
https://blog.csdn.net/qq_36487432/article/details/91983614
android純Java代碼顏色漸變
https://blog.csdn.net/NakajimaFN/article/details/82669585?utm_medium=distribute.pc_relevant_download.none-task-blog-blogcommendfrombaidu-2.nonecase&depth_1-utm_source=distribute.pc_relevant_download.none-task-blog-blogcommendfrombaidu-2.nonecas
android 快速點(diǎn)擊兩次出現(xiàn)兩個(gè)重復(fù)界面
https://blog.csdn.net/weixin_37438128/article/details/106798051
GradientDrawable drawable = (GradientDrawable) lin.getBackground();
drawable.setStroke(4, Color.parseColor(“#ffffff”));//設(shè)置邊框的寬度和顏色
drawable.setCornerRadius(5);//圓角
lin.setElevation(5);//陰影
lin.setTranslationZ(5);
img.setElevation(5);
img.setTranslationZ(5);
點(diǎn)贊
https://blog.csdn.net/yun382657988/article/details/83339852
PhotoView
https://blog.csdn.net/feng___chen/article/details/100746273
https://blog.csdn.net/qq_31683033/article/details/101011834
文字下劃線
popwindow動(dòng)畫
https://www.jianshu.com/p/1a009b964d00
BottomDialog
https://github.com/shaohui10086/BottomDialog/blob/master/README_ZH.md
虛線框
https://blog.csdn.net/devilnov/article/details/76177813
引導(dǎo)層框架–NewbieGuide
https://blog.csdn.net/lixinxiaos/article/details/97376027
獲取剪切板
ClipboardManager cm = (ClipboardManager) context.getSystemService(Context.CLIPBOARD_SERVICE);if (cm != null) {ClipData data = cm.getPrimaryClip();if (data != null && data.getItemCount() > 0) {ClipData.Item item = data.getItemAt(0);if (item != null) {CharSequence sequence = item.coerceToText(context);if (sequence != null) {String string = sequence.toString();return str;}}}}題庫公式
https://blog.csdn.net/u010257931/article/details/84028158
圖文混排
https://blog.csdn.net/yang_cai_bin/article/details/117131658
https://blog.csdn.net/qq_30548105/article/details/78031347
textview 標(biāo)簽
https://blog.csdn.net/aprilqq/article/details/52244308
獲取網(wǎng)頁里的圖片
依賴
implementation ‘org.jsoup:jsoup:1.10.3’
Installed Build Tools revision 31.0.0 is corrupted. Remove and install again
解決辦法:
https://stackoverflow.com/questions/68387270/android-studio-error-installed-build-tools-revision-31-0-0-is-corrupted
關(guān)鍵字變色
https://blog.51cto.com/u_14368928/5237827
Glide加載靜態(tài)圖片時(shí)有動(dòng)態(tài)placeholder
https://blog.csdn.net/jinrumorijuesha/article/details/89206164
獲取IP地址、地址
https://www.cnblogs.com/wang95529/p/14235372.html
new Thread(new Runnable() {
@Override
public void run() {
URL infoUrl = null;
InputStream inStream = null;
String line = “”;
try {
infoUrl = new URL(“http://pv.sohu.com/cityjson?ie=utf-8”);
URLConnection connection = infoUrl.openConnection();
HttpURLConnection httpConnection = (HttpURLConnection) connection;
int responseCode = httpConnection.getResponseCode();
if (responseCode == HttpURLConnection.HTTP_OK) {
inStream = httpConnection.getInputStream();
BufferedReader reader = new BufferedReader(new InputStreamReader(inStream, “utf-8”));
StringBuilder strber = new StringBuilder();
while ((line = reader.readLine()) != null)
strber.append(line + “\n”);
inStream.close();
// 從反饋的結(jié)果中提取出IP地址
int start = strber.indexOf(“{”);
int end = strber.indexOf(“}”);
String json = strber.substring(start, end + 1);
if (json != null) {
try {
JSONObject jsonObject = new JSONObject(json);
line = jsonObject.optString(“cip”);
ipcity = AddressUtils.getCity(line);
總結(jié)
- 上一篇: 【小米】风口的猪-中国牛市
- 下一篇: vue组件传值