Android常用功能開發庫:Common Utils
常見的Android開發工具類庫,以減少實現Android應用程序常見功能的開發。如檢查網絡的可用性,shared preferences使用、解析等Android開發者可能經常會碰到的功能。具體如下:
EditText 空值校驗. 檢查網絡是否可用 (Internet or Wifi). Email 地址校驗. 取得當前日期的字符串格式. 取得設備Id 設置Preferences 和取得 Preferences. 如String, int, long, Boolean, Float. 刪除所有 preferences. Get current location. Pinch Zoom on image. Get application Icon drawable. Send local notification. Disable sleep mode on while using application. Enable sleep mode on while using application. Open image from selected directory path. Open video from selected directory path. Open URL to mobile browser. Shows address location on map. Create folder or directory. Download image from URL. Show date picker. Show time picker. Get number of file counts. Calculate date difference. Convert date from string to date format. Get device height. Get device width. Get random number. Add postfix to numbers. Convert comma separated string to array list. Convert arrayList to comma separated string. Play background music. Stop background music. Apply blur effect on image. Convert drawable to bitmap. Convert bitmap to drawable. Get device volume for application for sound. Set bitmap image to preferences. Get bitmap image form preference. Get application version code. Set vertical text-view (left & right). Check Whether Sd card is available on Device. Show Share Dialog. Change Device Profile (Silent or Vibrate or Normal). Change bitmap to Rounded Cornered. Show Alert Dialog or Toast. Preventing double click. Capture Image. Pick Image. Preview Captured Image. Record Video. Pick Video. Preview Captured Video. Get path of picked image or video (for all versions). Integrating Social Platforms. Adding Ripple Effect. Check Website url is valid or not. Get all contacts that have email address. Get bitmap of view (ScreenShot). 從ImageView取得顏色. 取得文件大小. 下載文件.
本文由用戶 dy223 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!