![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android
Let·go
码渣
展开
-
调到应用商城评价
private void goToStore(){ Uri uri = Uri.parse("market://details?id=" + getApplicationContext().getPackageName()); Intent intent = new Intent(Intent.ACTION_VIEW, uri); intent.addFlags(Inten原创 2017-05-05 15:14:12 · 323 阅读 · 0 评论 -
修改ToolBar+DrawerLayout 的图标
final DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(this, drawer, toolbar, R.string.navigation_drawer_open, R.string.n原创 2017-06-07 09:17:49 · 1691 阅读 · 0 评论 -
android 加载本地webView
1.在main下创建一个assets资源文件夹,把所需要的webView资源都拷进去,2.在html 文件中,更改资源路径,如若不改,图片等资源无法显示。如图所示3. 布局就是一个普通的WebView,我这里把html内容 转成了 字符串,主要的就是调用了WebView 的loadDataWithBaseUrl方法,里面的参数看一下方法就知道什么意思了,这里原创 2017-06-28 15:34:58 · 370 阅读 · 0 评论 -
dialog设置 背景透明
先看一下效果:布局很简单,background 设置为透明就行。代码也很简单,其中最主要的就是:mDialog.getWindow().setBackgroundDrawableResource(android.R.color.transparent);下面是完整代码AlertDialog.Builder builder = new AlertDialog.Builder(Context);Vi...原创 2018-04-18 16:28:12 · 912 阅读 · 0 评论 -
简单的 android 和js 互调 ,记录一下
设置一下WebViewWebView webView = findViewById(R.id.webView);WebSettings webSettings = webView.getSettings();webSettings.setJavaScriptEnabled(true);//设置能够解析JavascriptwebSettings.setDomStorageEnab...原创 2018-05-02 17:58:26 · 179 阅读 · 0 评论 -
AndResGuard 集成
1.在app的build.gradle中 添加apply plugin: 'AndResGuard'andResGuard { mappingFile = null use7zip = true useSign = true // It will keep the origin path of your resources when it's tru...原创 2019-07-02 15:05:20 · 502 阅读 · 0 评论