![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android
文章平均质量分 64
小侯和小陈
这个作者很懒,什么都没留下…
展开
-
‘boolean androidx.fragment.app.FragmentManager.isDestroyed()‘
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean androidx.fragment.app.FragmentManager.isDestroyed()' on a null object reference原创 2022-11-04 17:51:59 · 859 阅读 · 1 评论 -
Android工程依赖了使用androidx的包,导致Androidx和Android Support冲突
Androidx和Android Support冲突原创 2022-10-25 10:02:54 · 2987 阅读 · 0 评论 -
flutter遇到MissingPluginException问题解决
初学flutter不久,这次在Android上集成FlutterBoost v3.0-null-safety-preview.9版本,期间过程各种种问题(网上都是3.0以下的集成问题,所以有问题只能自己慢慢磨),最后还是集成成功了。提测阶段,测试发现flutter调起Android手机的打电话页面失败,调试发现报错Unhandled Exception:MissingPluginException,flutter中这个功能使用的是第三方库url_launcher,于是想到...原创 2021-09-22 15:15:48 · 3764 阅读 · 0 评论 -
Android实现TextView内容可展开收缩功能
最近在开发中需要实现一个需求,某项东西的介绍文字超过三行默认要收起,点击末端下拉箭头可以展开查看更多,大致效果图如下: 咋一看需求还挺简单,GitHub上也有现成的ExpandableTextView控件可用,实现效果: 好像看起来差不多,不过UI验收的时候就过不去了,要求下拉箭头需要跟在文字后面,且要有省略号表示更多内容,那现成的控件是...原创 2018-11-12 15:28:09 · 7402 阅读 · 2 评论 -
软键盘挡住webview输入框
关于webview里输入框被软键盘遮挡的问题原创 2017-10-26 15:47:34 · 538 阅读 · 0 评论 -
Android Studio远程依赖问题
做项目过程中,由于项目比较大,工程分很多模块。底层模块都是封装完打包上传公司的服务,业务层通过远程依赖使用。 今天在改了底层一个问题后,上层依赖做升级,结果发现一直报“Could not find xxxxx.aar, Searched in the following locations:xxxxxxxxxxxxxxxxxxxxxxxx”,看了下location,正是服务地址没错转载 2017-08-15 17:20:47 · 499 阅读 · 0 评论 -
使用clickablespan时点击无效问题
有时候一行文字显示多种样式,不想布局文件太复杂,用一个TextView搞定,这时候就会用到SpannableString或者SpannableStringBuilder。这次在给SpannableStringBuilder设置ClickableSpan时发现点击事件无效,这倒是第一次遇到。基本的像setSpan()要在setText()之前或者setText()内容是SpannableStri原创 2017-08-04 10:46:21 · 9946 阅读 · 1 评论 -
Android4.3及以下版本加载html源码错误问题
在做项目的时候碰到这么个问题:服务端返回一串含Javascript的html文本,Android4.3以上版本加载正常,但是以下版本就无法加载,直接显示源码在页面上。网上搜了一遍,有关联的信息太少,一个是给WebView添加js接口并重写WebViewClient的onPageFinished()方法,先不考虑安全漏洞问题,直接尝试发现并没有用,看来该方法不适用于我的问题,这里是该方法的传原创 2017-07-31 16:49:33 · 918 阅读 · 0 评论 -
Android实现点击通知栏通知恢复前台
通过广播来实现,参考 http://www.ithtw.com/5684.html(leehom 2015年09月15日 于 IT十万为什么 发表)我的实现方法是不通过广播,而是通过PendingIntent实现跳转:Intent intent = new Intent();PendingIntent pendingIntent = null;if(BridgeUtil.i原创 2016-01-06 09:58:47 · 1481 阅读 · 0 评论 -
HTTP消息头中的“Cache-control”介绍
转自:http://blog.sina.com.cn/s/blog_6ce2999701014whn.html1. response.setHeader("Cache-Control","no-cache");This is used to prevent the browser from caching your dynamic content generated b转载 2015-06-08 11:44:37 · 618 阅读 · 0 评论 -
Android菜鸟学习笔记(百度地图无法显示或只显示部分问题)
在做百度地图时,一开始地图无法显示,原创 2014-09-25 15:18:43 · 779 阅读 · 0 评论 -
Android菜鸟学习笔记(WebView加载html页面,页面提交数据问题)
在开发过程中,有一个问卷调查功能,问卷是urlyong原创 2014-09-15 18:05:44 · 2589 阅读 · 0 评论 -
Android菜鸟学习笔记(WebView加载html,滑动时闪屏)
WebView加载html静态页面时,滑动页面出现严重闪屏,原创 2014-09-26 10:29:24 · 5313 阅读 · 0 评论 -
Android菜鸟学习笔记(ImageLoader加载图片)
ImageLoader imageLoader = ImageLoader.getInstance(); imageLoader.init(ImageLoaderConfiguration.createDefault(getActivity()));原创 2014-09-12 14:55:26 · 751 阅读 · 0 评论 -
Android菜鸟学习笔记(GridView)
GridViewfe原创 2014-08-28 10:58:06 · 505 阅读 · 0 评论 -
Android菜鸟学习笔记(ImageLoader使用前需初始化异常)
异常java.lang.IllegalStateException: ImageLoader must be init with configuration before using原创 2014-09-06 18:24:47 · 967 阅读 · 0 评论 -
Android菜鸟学习笔记(获取屏幕宽、高)
android获取屏幕的高度和宽度用到WindowManager这个类,两种方法: 1、WindowManager wm = (WindowManager) getContext() .getSystemService(Context.WINDOW_SERVICE); int width = wm.转载 2014-09-04 10:22:56 · 506 阅读 · 0 评论