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