2020年5月14日
摘要: 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日
摘要: 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 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日
摘要: 今天使用glide +https, 参照glide wiki 的代码噌噌噌编好了,一试发现怎么地都不行,一步一步追踪发现问题出在Okhttp的https设置上, 各种比对之前的代码发现都没问题。。。直到重新试了另一种代码方式才发现问题最终出现的地方。 1.glide wiki里的unsafeHttp 阅读全文
posted @ 2017-03-09 17:17 songsyl1207 阅读(1267) 评论(0) 推荐(0) 编辑
  2017年2月17日
摘要: http://www.trinea.cn/android/2017-android-jobs/ 阅读全文
posted @ 2017-02-17 11:33 songsyl1207 阅读(71) 评论(0) 推荐(0) 编辑
  2016年10月10日
摘要: 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日
摘要: 这东西是最基础的,发现自己其实没有真正试过,好好研究研究 standard :默认, singleTop :大体上同standard,但是当该Activity实例已经在task栈顶,不再创建新的实例,而是调用该实例的onNewIntent方法 singleTask :跟singleTop不同,不管A 阅读全文
posted @ 2016-07-21 18:02 songsyl1207 阅读(122) 评论(0) 推荐(0) 编辑
  2016年7月19日
摘要: 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日
摘要: 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) 编辑