09 2020 档案

摘要:NoSuchMethodError: The getter 'modalBarrierDismissLabel' was called on null解决方法 问题描述:如果在MaterialApp里调用showCupertinoDialog显示弹出框,可能会遇到这个错误。 原因分析:就是Mater 阅读全文
posted @ 2020-09-27 11:35 yongfengnice 阅读(1223) 评论(0) 推荐(1) 编辑
摘要:1.xml代码 <activity android:hardwareAccelerated="true" android:name=".WebViewActivity" android:configChanges="orientation|keyboardHidden|screenSize" and 阅读全文
posted @ 2020-09-22 17:53 yongfengnice 阅读(2275) 评论(2) 推荐(0) 编辑
摘要:1. 子模块1:gmath静态库CMakeLists.txt #要求的cmake最小版本cmake_minimum_required(VERSION 3.4.1)#打开cmake输出日志set(CMAKE_VERBOSE_MAKEFILE on)#添加静态库,库名称gmathadd_library( 阅读全文
posted @ 2020-09-19 11:49 yongfengnice 阅读(2323) 评论(0) 推荐(0) 编辑
摘要:在普通的C语言里,如果想将函数或者变量使用范围现在在当前文件,需要对其添加static修饰。但如果希望将其暴露给共享库的指定文件,需要通过符号隐藏显示来控制。GCC4.0以后提供了符号可见性选项-fvisibility=vis,vis可以是默认值default、或者hidden表示隐藏。对应的代码可 阅读全文
posted @ 2020-09-19 10:36 yongfengnice 阅读(2121) 评论(0) 推荐(0) 编辑
摘要:方法1. 使用grep命令,不过这个速度有点慢,最好缩小搜索范围 比如:grep -n "CMAKE_VERBOSE_MAKEFILE" -r ./ 表示当前目录以及子目录下全局搜索包含字符串CMAKE_VERBOSE_MAKEFILE的所有文件 方法2. 使用the_silver_searcher 阅读全文
posted @ 2020-09-18 18:22 yongfengnice 阅读(2825) 评论(0) 推荐(0) 编辑
摘要:class RoundImageView @JvmOverloads constructor( context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0) : AppCompatImageView(context, at 阅读全文
posted @ 2020-09-15 15:36 yongfengnice 阅读(926) 评论(0) 推荐(0) 编辑
摘要:public static Bitmap generateBitmap(String text,int textSizePx,int textColor){ TextPaint textPaint = new TextPaint(); textPaint.setTextSize(textSizePx 阅读全文
posted @ 2020-09-09 17:23 yongfengnice 阅读(1369) 评论(2) 推荐(0) 编辑

点击右上角即可分享
微信分享提示