- 博客(10)
- 收藏
- 关注
原创 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 811
原创 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 1875 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 292
原创 Android 使用Realm 数据库 出现 Type 'xxxxxxxxxx' appears more than once in the schema.
就是你的表的类名 跟其他的类名重复了,把你后加的 出现错误的 表 的类名修改一下,就ok了。
2018-10-24 10:31:34 424
原创 获取子view中所有的孙view的数量及View
自定义控件继承ViewGroup 会去在onLayout中重画view的位置及宽高,ViewGroup所提供的getChildCount 只能获取到第一层子view的数量,获取孙view 的数量 需要 这样就能获取 数量 以及view 了 也可以对 view 进行相关的操作...
2018-09-13 11:42:52 2253
原创 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 12263 6
原创 HorizontalScrollview屏蔽掉viewpager的滑动事件。
重写一下HorizontalScrollview的dispatchTouchevent方法,感谢小姐姐教我。 public boolean dispatchTouchEvent(MotionEvent ev) { getParent().requestDisallowInterceptTouchEvent(true); return super.di
2017-08-30 15:09:26 376
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人