会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Loading
妖久
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
···
19
下一页
2018年12月18日
通过ADB查看当前Activity
摘要: cmd命令中输入:adb shell dumpsys activity activities 在一连串的输出中找到Runing activities com.android.settings是包名. .HWSettings是activitie名称 转载请标明:https://www.cnblogs.
阅读全文
posted @ 2018-12-18 20:01 妖久
阅读(15745)
评论(0)
推荐(0)
2018年12月14日
android添加阴影
摘要: android底部增加背景 底部阴影宽度为1,若是左边右边上边需要阴影按照这个方法加上left,right,top就好了
阅读全文
posted @ 2018-12-14 20:14 妖久
阅读(969)
评论(0)
推荐(0)
2018年12月13日
java.lang.IllegalArgumentException: Called attach on a child which is not detached: ViewHolder
摘要: 转载请标明出处,维权必究:https://www.cnblogs.com/tangZH/p/10116298.html 更多请看:http://77blogs.com/?p=482 在项目过程中出现了上述错误。 会出现这样的错误是在我使用: notifyItemRemoved(position);
阅读全文
posted @ 2018-12-13 20:45 妖久
阅读(5448)
评论(0)
推荐(0)
RecycleView的notifyItemRemoved使用注意
摘要: 转载请标明出处,维权必究:https://www.cnblogs.com/tangZH/p/10116095.html 更多链接:http://77blogs.com/?p=483 我们为了移除RecycleView的某一项,会用RecycleView的notifyItemRemoved(int p
阅读全文
posted @ 2018-12-13 20:07 妖久
阅读(6996)
评论(0)
推荐(0)
2018年12月3日
as无法关联git
摘要: 转载请标明出处:https://www.cnblogs.com/tangZH/p/10060573.html 从gitlab上面把项目拉下来之后,用as打开,发现as无法关联git,没有git相关的菜单。 最终发现是因为没有打开这个: 设置之后就可以了。
阅读全文
posted @ 2018-12-03 20:08 妖久
阅读(866)
评论(0)
推荐(0)
2018年11月28日
单例模式的双重检测
摘要: 单例模式是设计模式中比较常见简单的一种,典型双重检测写法如下: public class SingletonClass { private volatile static SingletonClass instance = null; public static SingletonClass get
阅读全文
posted @ 2018-11-28 13:47 妖久
阅读(10677)
评论(3)
推荐(0)
2018年11月27日
LayoutInflater.inflate()方法两个参数和三个参数
摘要: 转载请标明出处:https://www.cnblogs.com/tangZH/p/7074853.html 更多精美文章:http://77blogs.com/?p=489很多人都用过LayoutInflater(布局填充器)对于我来说通常使用下面两种:LayoutInflater.from(con
阅读全文
posted @ 2018-11-27 10:42 妖久
阅读(2440)
评论(0)
推荐(0)
2018年11月20日
TextView图文混排
摘要: 大家都知道,textView有一个setCompoundDrawables的方法来设置上下左右位置的图标,当然,也可以在xml布局文件中设置,然而问题来了,假如我们把图标放在左边,当我们让TextView分多行显示的时候,会出现一种情况,左边的图标并不会与第一行对齐,而是与整个textView居中对
阅读全文
posted @ 2018-11-20 17:47 妖久
阅读(1153)
评论(0)
推荐(0)
2018年11月10日
android找不到aar包
摘要: 转载请标明出处,维权必究:https://www.cnblogs.com/tangZH/p/9939663.html 更多查看:http://77blogs.com/?p=494 在做项目的时候引入aar包,编译的时候却提示错误(这个错误大概说的是.......模块B>模块C......有点忘了),
阅读全文
posted @ 2018-11-10 16:00 妖久
阅读(3730)
评论(0)
推荐(0)
android中的相对路径
摘要: 转载请标明出处:https://www.cnblogs.com/tangZH/p/9939655.html ,http://77blogs.com/?p=495 1、同个文件夹访问 D:\Java\main\A.java D:\Java\main\B.java A访问B的相对路径为B.java 2、
阅读全文
posted @ 2018-11-10 15:59 妖久
阅读(1825)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
19
下一页
公告