![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
坑
lukoyifo
菜鸡Android码农
展开
-
颜色透明度百分比转换16进制
颜色透明度原创 2023-02-14 10:31:13 · 238 阅读 · 0 评论 -
Android stuido 新版本导入今日头条依赖失败
implementation 'com.github.JessYanCoding:AndroidAutoSize:v1.2.1' 报错 无法下载。使用的撕丢丢版本 Chipmunk|2021.2.1 Patch 1 导入。在pluginManageMent 和dependency里面都加入。报错内容忘了保存了,反正就是导入不了依赖。找到setting.gradle。原创 2022-11-29 13:39:43 · 850 阅读 · 0 评论 -
android自定义通知声音无效
notification设置自定义铃声无效原创 2022-01-19 10:18:04 · 2145 阅读 · 0 评论 -
Android 使用webview 打开浏览ppt文件
参考: 1. https://github.com/Victory-Over/SuperWeb 2. https://github.com/yangchong211/YCWebView参考大神框架的使用:1,SuperWeb 超级浏览器基于腾讯X5内核目前已有功能:1、文件浏览(支持pdf/ppt/doc/excel/txt) 2、文件上传(JS...原创 2019-11-12 10:32:47 · 1951 阅读 · 1 评论 -
解决listview setSelection 不生效
转自:https://blog.csdn.net/qq_16774265/article/details/51957083class SelectPosListView : ListView { lateinit var dataChangedListener: DataChangedListener constructor(context: Context?) : th...转载 2018-11-14 10:08:16 · 296 阅读 · 0 评论 -
Android 使用Realm 数据库 出现 Type 'xxxxxxxxxx' appears more than once in the schema.
就是你的表的类名 跟其他的类名重复了,把你后加的 出现错误的 表 的类名修改一下,就ok了。原创 2018-10-24 10:31:34 · 439 阅读 · 0 评论 -
获取子view中所有的孙view的数量及View
自定义控件继承ViewGroup 会去在onLayout中重画view的位置及宽高,ViewGroup所提供的getChildCount 只能获取到第一层子view的数量,获取孙view 的数量 需要 这样就能获取 数量 以及view 了 也可以对 view 进行相关的操作...原创 2018-09-13 11:42:52 · 2272 阅读 · 0 评论 -
应用不现实在最近应用程序列表
对应的Activity 设置excludeFromRecents 属性为true原创 2018-04-19 16:45:52 · 576 阅读 · 0 评论 -
Could not find com.android.tools.lint:lint-gradle:26.1.1
打包出现错误。解决方法在app的build.gradle 加上 lintOptions { checkReleaseBuilds false abortOnError false }原创 2018-04-19 16:44:17 · 12283 阅读 · 6 评论 -
HorizontalScrollview屏蔽掉viewpager的滑动事件。
重写一下HorizontalScrollview的dispatchTouchevent方法,感谢小姐姐教我。 public boolean dispatchTouchEvent(MotionEvent ev) { getParent().requestDisallowInterceptTouchEvent(true); return super.di原创 2017-08-30 15:09:26 · 385 阅读 · 0 评论