会员
众包
新闻
博问
闪存
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
songsyl1207
博客园
首页
新随笔
联系
订阅
管理
2020年5月14日
kotlin 自定义view 构造方法 代码备份
摘要: class CanEditTextView : AppCompatEditText { constructor(context: Context) : super(context) constructor(context: Context, attributeSet: AttributeSet) :
阅读全文
posted @ 2020-05-14 15:30 songsyl1207
阅读(2024)
评论(0)
推荐(0)
编辑
2019年8月19日
gradle 问题汇总
摘要: 1.Manifest merger failed with multiple errors, see logs。 出错了,但是没有日志,需要执行如下命令查看具体原因 gradlew processDebugManifest --stacktrace
阅读全文
posted @ 2019-08-19 15:37 songsyl1207
阅读(209)
评论(0)
推荐(0)
编辑
2018年11月9日
adb 命令记录
摘要: adb 查看包名的版本号 : adb shell pm dump com.android.dialer | findstr “versionName” adb shell pm dump com.android.dialer | findstr “versionCode” adb 回到桌面 : ad
阅读全文
posted @ 2018-11-09 19:28 songsyl1207
阅读(219)
评论(0)
推荐(0)
编辑
2017年3月9日
OkHttp3 + https 的坑
摘要: 今天使用glide +https, 参照glide wiki 的代码噌噌噌编好了,一试发现怎么地都不行,一步一步追踪发现问题出在Okhttp的https设置上, 各种比对之前的代码发现都没问题。。。直到重新试了另一种代码方式才发现问题最终出现的地方。 1.glide wiki里的unsafeHttp
阅读全文
posted @ 2017-03-09 17:17 songsyl1207
阅读(1267)
评论(0)
推荐(0)
编辑
2017年2月17日
20多个可以提高你安卓开发技能的开源app
摘要: http://www.trinea.cn/android/2017-android-jobs/
阅读全文
posted @ 2017-02-17 11:33 songsyl1207
阅读(71)
评论(0)
推荐(0)
编辑
2016年10月10日
git 命令记录
摘要: git log 配置 git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%C
阅读全文
posted @ 2016-10-10 17:10 songsyl1207
阅读(120)
评论(0)
推荐(0)
编辑
2016年8月18日
日常笔记
摘要: 1.webView 相关: webView onDestroy 中需要手动调用 webView.destroy(); 否则可能存在某些问题 2. 两int /long 型相除取两位小数结果 3 .window属性相关 <item name="android:windowFrame">@null</i
阅读全文
posted @ 2016-08-18 15:38 songsyl1207
阅读(170)
评论(0)
推荐(0)
编辑
2016年7月21日
Android基础之Activity四种启动模式
摘要: 这东西是最基础的,发现自己其实没有真正试过,好好研究研究 standard :默认, singleTop :大体上同standard,但是当该Activity实例已经在task栈顶,不再创建新的实例,而是调用该实例的onNewIntent方法 singleTask :跟singleTop不同,不管A
阅读全文
posted @ 2016-07-21 18:02 songsyl1207
阅读(122)
评论(0)
推荐(0)
编辑
2016年7月19日
android studio 使用ndk编译.C文件生成so文件
摘要: task buildSo(type: Exec) { //windows commandLine 'ndk-build.cmd', '-C', file('src/main').absolutePath //linux// commandLine 'ndk-build', '-C', file('s
阅读全文
posted @ 2016-07-19 11:44 songsyl1207
阅读(345)
评论(0)
推荐(0)
编辑
2015年10月20日
android 代码生成selector drawable
摘要: public static StateListDrawable makeSelector(Context context, int idNormal, int idPressed, int idFocused) { StateListDrawable bg = new StateListDra...
阅读全文
posted @ 2015-10-20 10:36 songsyl1207
阅读(732)
评论(0)
推荐(0)
编辑
下一页