android
LoveTheCoding
这个作者很懒,什么都没留下…
展开
-
dialog背景透明
方法一:样式构造方法中使用方法二:xml+代码一定要在构造方法执行setBackgroundDrawableResource(R.color.transparency),否则无效;方法三:代码只设置一个属性,达不到效果,需要知道视图为两层,window+布局视图,同时设置透明效果才会出现...原创 2021-05-06 17:57:43 · 602 阅读 · 0 评论 -
Android studio配置jni打印
cmakelists.txtadd_library( # Specifies the name of the library. trans//你的库名称 # Sets the library as a shared library. SHARED//可共享 # Provides a relative path...原创 2019-12-25 09:15:09 · 174 阅读 · 0 评论 -
Camera、TextureView预览拉伸问题解决方案
现象使用TextureView预览发现相机拉伸了;原因camera尺寸与TextureView尺寸不匹配,像素点矩阵偏移;解决方案获取camera参数 设置到TextureView;代码public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { ...原创 2019-12-12 16:44:15 · 2665 阅读 · 0 评论