原创 Glide 4.0+的使用詳解

Glide是一個快速高效的圖像加載庫,專注於平滑滾動。 Glide提供了一個易於使用的API,一個性能可擴展的資源解碼流水線和自動資源池。 Glide支持網絡,解碼和顯示視頻靜止圖像,圖像和動畫GIF 使用前準備 官方地址:htt

原创 Android保存數據到Excel(基於jxl)

  參考自: https://blog.csdn.net/yangbin0513/article/details/51782525 https://blog.csdn.net/qq_36982160/article/details/824

原创 Android系統分享、複製到剪切板、打開外部瀏覽器

1、分享 Intent share_intent = new Intent(); share_intent.setAction(Intent.ACTION_SEND);//設置分享行爲 s

原创 Unable to merge dex錯誤解決思路

錯誤提示: Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. java.lang.RuntimeExcepti

原创 記錄:win8、win10修改hosts文件的方法

將C:\Windows\System32\drivers\etc下的hosts文件拖到桌面,完成修改,然後再保存到原來的目錄下面,簡單快捷!!

原创 Android 獲取Bitmap的四種方式

通過BitmapFactory獲取Bitmap 1、資源文件(drawable文件下) Bitmap bitmap = BitmapFactory.decodeResource(mContext.getResources(),R.dra

原创 記錄:seekbar進度條寬度和滑塊高度一致問題

給seekbar設置progressDrawable=“”屬性以後,進度條的寬度和滑塊的高度一致了,可以通過設置seekbar的maxHeight=“”屬性來解決,同樣也可以設置minHeight=“”屬性限制最小高度

原创 Android 無標題欄的透明Activity實現

1.在values_colors文件定義透明度 <color name="transparent">#CC000000</color> 我這裏採用80%的半透明 2.在values_styles文件下寫theme <!--no tit

原创 Android Studio查看源碼

在寫代碼的過程中,往往我們會Ctrl+鼠標左鍵 查看系統源碼,但是會出現如下的提示,也就是源碼沒有找到的錯誤。 源碼沒有找到一般可能有兩個原因,一個是沒有下載源碼,一個是下載了源碼,但是沒有設置,下面針對兩個原因處理  1、沒有下載源碼

原创 Android保持屏幕常亮的三種方式

方式一: 1.添加權限 <uses-permission android:name="android.permission.WAKE_LOCK"/> 2.獲取PowerManager對象 3.通過PoverManager對象獲

原创 藍牙開發(二)掃描設備

一、申請位置權限 在Android6.0以後要掃描藍牙設備,還需要請求位置權限: <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /

原创 藍牙開發(一)基礎設置

1、添加權限 <uses-permission android:name="android.permission.BLUETOOTH" /> <uses-permission android:name="android.permissi

原创 Android中的註釋以及修改註釋模板的方法

1、常見的註釋方法 @author  作者信息 @link 在註釋中使用,可以快速定位一個類、子類、類中的方法或者類中的字段,Ctrl+左鍵,就可以快速跳轉到鏈接的類或方法 /** * 這裏要引用一個類 {@link package.

原创 Configuration on demand is not supported by the current version of the Android Gradle plugin

記錄一個gradle版本問題 Configuration on demand is not supported by the current version of the Android Gradle plugin since you a

原创 Couldn't save uncommitted changes / unable to auto-detect email address錯誤

錯誤提示: Couldn't save uncommitted changes. Tried to save uncommitted changes in stash before Update, but failed with a