- 博客(5)
- 收藏
- 关注
原创 reactnative接入遇到问题
问题3、Cannot run program “node” (in directory “/Users/dxm/react/android”): error=0。解决方案参考:https://github.com/facebook/react-native/issues/41580 使用方案1。进入项目根目录执行:yarn add react-native。1、node&watchman环境配置。gradle升级到8.7。4、rn 自动链接配置。解决方法:重启电脑ok。
2024-09-30 18:24:11
824
原创 viewpage2或者recyleview滑动时间长的问题分析与解决
viewpage2和recyleview的smoothscroll滑动时间长问题解决
2023-04-03 16:13:13
1156
1
原创 android touch事件源码梳理
ViewRootImpl接收Event01、ViewRootImpl的WindowInputEventReceiver中会接收系统传递的按键,执行onInputEvent方法02、onInputEvent方法执行enqueueInputEvent,再执行doProcessInputEvents或者scheduleProcessInputEvents,最终执行到deliverInputEvent03、deliverInputEvent中通过InputStage向对应的输入目标发送按键,安卓view对.
2021-10-29 15:14:05
1331
原创 仿微信调整APP文本大小
仿微信调整APP文本大小调整今日要实现类型微信,qq的文本大小调整,不随系统变化,目前网上主要方案有:1、设置fontScale2、设置densityDpi3、设置theme观察微信调整文本大小时,头像等元素也随着变化,因此排除fontScale模式,设置theme模式需要修改的代码太多,也不适用,排除,因此选择方案2具体实现如下:Activity基类中添加: @Override public Resources getResources() { Resourc
2020-07-23 18:51:20
621
原创 记录一次组件化butterknife的接入过程和问题
标题 记录一次标题组件化butterknife的接入过程和问题1、buildgradle配置 dependencies { classpath 'com.android.tools.build:gradle:3.1.0' classpath "com.jakewharton:butterknife-gradle-plugin:9.0.0" // NOTE: Do not place your application dependencies here; t
2020-06-30 13:34:23
236
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅