在安卓中显示gif图片
使用WebView
1 | <WebView |
1 | runWebView.loadDataWithBaseURL(null, |
使用WebView
1 | <WebView |
1 | runWebView.loadDataWithBaseURL(null, |
1 | android:adjustViewBounds="true" |
1 | .view.RemotableViewMethod |
1 | ## 当前目录 新建一个Git代码库 |
1 | ## 显示当前的Git配置 |
fragment是3.0以后的东西,为了在低版本中使用fragment就要用到android-support-v4.jar兼容包,fragmentActivity提供了操作fragment的一些方法,其功能跟3.0及以后的版本的Activity的功能一样。
类名.()的写法1 | inline fun AppCompatActivity.fragmentTransaction(block: FragmentTransaction.() -> Unit): Boolean { |
1 | /* 新的协程job */ |
1 | <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" /> |
1 | val pm = context.applicationContext.packageManager |
1 | info.loadIcon(pm) |
可自定义标题,弹出软件选择器
1 | Intent intent = new Intent(); |
方便起见,可以使用
1 | Intent.createChooser(Intent,CharSequence) |