Glide 允许用户指定三种不同的占位符用以适应不同的场景:
- placeholder
- error
- fallback
TL;DR* Here's what the license entails:
1. Anyone can copy, modify and distribute this software.
2. You have to include the license and copyright notice with each and every distribution.
3. You can use this software privately.
4. You can use this software for commercial purposes.
5. If you dare build your business solely from this code, you risk open-sourcing the whole code base.有時候用 WebView.url 得到的卻是 about:blank 或 沒有更新
例如 當使用 loadDataWithBaseURL 載頁面後, 變動 url fragment 時 WebView.url 沒有同步
有一些方式可以得到 WebView 當前連結 (含 url fragment)
下面是其中一種方式:
webView?.evaluateJavascript("location.href||''") { href ->| /** | |
| * Attempts to start an activity to handle the given intent, excluding activities of this app. | |
| * <ul> | |
| * <li>If the user has set a default activity (which does not belong in this app's package), it is opened without prompt.</li> | |
| * <li>Otherwise, an intent chooser is displayed that excludes activities of this app's package.</li> | |
| * </ul> | |
| * | |
| * @param context context | |
| * @param intent intent to open | |
| * @param chooserTitle the title that will be displayed for the intent chooser in case one needs to be displayed. |
專案有一個需求
先對 某一組 String (全小寫且每次都不同) 算出 MD5
再將算出來的 MD5 轉成 Hex String 再與另一組 String(全小寫) 串成 新的 String
然後再算出 SHA256
在 Android 計算 MD5 是用
| /* | |
| @author longcat (Pichaya Morimoto) | |
| This code snippet can be used to resolve BOT (Bank Of Thailand) mobile security requirement "insecure background" | |
| without hurting user experience in mobile app. | |
| Briefly, when the app is pushed into background mode (user presses the Home button) | |
| Android phone will create screenshot of the current Activity for displaying it in recent apps menu | |
| The recent's app screenshots will be stored at: |
使用 Blender 來轉換, 指令如下
Windows
blender -b -P usdz_to_glb.py -- %TIME%
Unix
blender -b -P usdz_to_glb.py -- "$(date)"