自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 资源 (3)
  • 收藏
  • 关注

原创 android studio 升级4.1之后 代码不能高亮 不能自动导包 不能及时提示错误等问题

升级android studio4.1之后 发现之前下载的插件都不能用了 还报错 Plugin "GsonFormat" is incompatible (supported only in IntelliJ IDEA). Plugin "FindViewByMe" is incompatible (supported only in IntelliJ IDEA). Plugin "Android Parcelable code g...

2020-10-16 09:44:45 1661 6

原创 安卓Recycleview实现瀑布流并添加计算ItemDecoration

步骤一添加双流layoutManager:StaggeredGridLayoutManager staggeredGridLayoutManager = new StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL);iRecyclerView.setLayoutManager(staggeredGridLayo...

2019-11-21 14:02:17 654

原创 安卓通过url跳转另一个app,没有安装,通过浏览器打开

/** * 根据包名判断手机是否安装app * * @param context * @param pkgName * @return */public static boolean checkAppInstalled(Context context, String pkgName) { if (pkgName == null || pkgName.isEmpty()) {...

2019-03-07 20:53:31 1230

原创 android.app.RemoteServiceException: Bad notification for startForeground: java.lang.RuntimeException

安卓开发8.1以上系统启动服务和通知报错    android.app.RemoteServiceException: Bad notification for startForeground: java.lang.RuntimeException: invalid channel for service notification: Notification(channel=null pri=...

2019-02-22 16:13:39 20545 8

原创 【已解决】Could not get unknown property 'packageForR' for task ':app:processDebugResources'

导入项目报错: Could not get unknown property 'packageForR' for task ':app:processDebugResources' of type com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask.问题描述:这个是因为项目gradle版本和butter...

2018-05-04 09:51:54 3519

android studio 源码查看翻译插件

android studio 源码查看翻译插件 从此以后源码阅读不再难

2019-02-25

soundtouch android 库 libsoundtouch.so

soundtouch android 库 V1.9.1 libsoundtouch.so 及示例 **--arm64-v8a **--armeabi **--armeabi-v7a **--mips **--mips64 **--x86 **--x86_64

2019-02-22

android在线查看pdf文档

pdfShowWebView = (WebView) findViewById(R.id.pdf_show_webview); pdfShowWebView.setWebViewClient(new WebViewClient() { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { // 返回值是true的时候控制去WebView打开,为false调用系统浏览器或第三方浏览器 view.loadUrl(url); return true; } }); WebSettings settings = pdfShowWebView.getSettings(); settings.setSavePassword(false); settings.setJavaScriptEnabled(true); settings.setAllowFileAccessFromFileURLs(true); settings.setAllowUniversalAccessFromFileURLs(true); settings.setBuiltInZoomControls(true); pdfShowWebView.setWebChromeClient(new WebChromeClient()); if (!"".equals(docPath)) { byte[] bytes = null; try {// 获取以字符编码为utf-8的字符 bytes = docPath.getBytes("UTF-8"); } catch (UnsupportedEncodingException e1) { e1.printStackTrace(); } if (bytes != null) { docPath = new BASE64Encoder().encode(bytes);// BASE64转码 } } pdfShowWebView.loadUrl("file:///android_asset/pdfjs/web/viewer.html?file="+ docPath);

2018-05-02

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除