原创 Flutter String格式化
請看原文: http://tryenough.com/flutter-stringformat 在Android和iOS平臺都有相應的方法進行字符串的格式化,但是在flutter中卻沒有直接提供 在flutter上可以藉助一個插件來進行格
原创 Flutter插件開發例子分享到facebook和twitter
請看原文更詳細:http://tryenough.com/flutter-plugin-share 這個活生生的例子會教你開發flutter插件,功能是封裝Android和iOS端的分享到facebook和twitter的flutter接
原创 UNZIP 命令
Linux UNZIP 命令 功能 unzip命令解壓".zip壓縮包"。 具體實例: 1、在當前目錄解壓:text.zip unzip test.zip 2、解壓到指定的目錄:(- d + 目錄路徑) unzip -d /temp t
原创 iOS 打開AppStore指定app下載頁
請支持原文 http://tryenough.com/ios-appstore 步驟一,找到AppStore上的appid 在pc端瀏覽器打開網址:https://www.apple.com/itunes/ 點擊搜索你想找的應用,例如f
原创 Flutter 添加背景圖片
請支持原文:http://tryenough.com/flutter-backImage Flutter 中添加背景圖片可以使用給Container添加decoration的方式。如下代碼: body: Container(
原创 Flutter國際化完整例子
請支持原文 http://tryenough.com/flutter-translation flutter國際化實現方案 這裏提供一份解決方案,和一份可以直接使用的demo。 1.添加依賴庫 需要用到flutter_localizati
原创 Flutter中 TTS(播放文本功能)的使用
請支持原文:http://tryenough.com/flutter-tts 需求 在flutter中指定一段文字,播放語音。 實現 1.添加庫引用 我們這裏使用Dart的 tts庫,首先在配置文件中添加這個庫的引用: 在pubspec
原创 Java自動裝箱-拆箱機制究竟是什麼
支持原文:http://tryenough.com/java-autobox 自動裝箱和拆箱從Java 1.5開始引入,目的是將原始類型值轉自動地轉換成對應的對象。 什麼是自動裝箱和拆箱 自動裝箱就是Java自動將原始類型值轉換成對應的對
原创 wordpressd打不開-Briefly unavailable for scheduled maintenance. Check back in a minute.
支持原文:http://tryenough.com/wp2077 Briefly unavailable for scheduled maintenance. Check back in a minute.是WordPress中的錯誤,通
原创 Android啓動模式-精華篇
支持原文:http://tryenough.com/android-launch-mode Activity的四種啓動模式如下: **standard、singleTop、singleTask、singleInstance ** st
原创 內存優化(使用SparseArray和ArrayMap代替HashMap)
支持原文:http://tryenough.com/java-sparseArray HashMap 關於HashMap的知識請看這篇 優秀文章: SparseArray SparseArray 的使用 支持原文:http://trye
原创 Android-保你能記住的生命週期教程
原文:http://tryenough.com/android-lifecycle 先看一下官方給出的圖: 總結一下上圖 主要的回調方法包括: onCreate 、onStart 、onResume 、onPause 、onStop 、
原创 Android傳值Intent和Bundle區別
原文: http://tryenough.com/android-intent-bundle 小夥伴問Android傳值Intent和Bundle區別,特此總結下: Intent與Bundle在傳值上的區別 首先從使用上: Intent
原创 遍歷數組排序,負數在左,正數在右
原文:https://tryenough.com/1999/ 問題描述: 有一個整形數組,包含正數和負數,然後要求把數組內的所有負數移至正數的左邊,且保證相對位置不變,要求時間複雜度爲O(n), 空間複雜度爲O(1)。例如,{10, -
原创 Android-Service的保活方法
支持原文:http://tryenough.com/android-service-life 保活Service可從兩方面考慮: 一.改變Service自身的方法 1.提高Service的優先級 在AndroidManifest.xml文