自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(22)
  • 资源 (1)
  • 收藏
  • 关注

原创 js keydown在安卓下取不到值得问题

js keydown在安卓下取不到值得问题

2022-11-14 16:37:04 243 1

原创 去掉安卓webview中的点击高亮

css中加入*{-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}*

2022-03-21 14:30:32 198

原创 腾讯云IM Web端支持发送语音消息

腾讯即时通讯IM的WebSDK不支持createAudioMessage, 只有小程序才能用. 经查在 tim-js-friendship.js下的createAudioMessage里 做了是否为小程序的判断,key: "createAudioMessage", value: function (e) { if (ni) { // 如果是小程序, 创建 audio message var t = e.payload.file; if (ni) { var n = { url

2021-12-21 09:30:22 850 1

原创 安卓Button设置background无效的问题

主题设置为Theme.MaterialComponents时, 会忽略button的background.解决在res/values/themes.xml 中parent="Theme.MaterialComponents.DayNight.DarkActionBar" 修改为parent="Theme.MaterialComponents.DayNight.NoActionBar.Bridge" 这样就可以解决background的问题了, 但是按钮会失去ripple效果使用 <

2021-08-05 16:51:13 1077

原创 android网络调试

USB连接手机adb tcpip 5555restarting in TCP mode port:5555拔掉手机adb connect xxx.xxx.xxx.xxx:5555connected to xxx.xxx.xxx.xxx:5555现在可以通过WIFI进行调试了

2021-06-29 09:38:21 89

原创 .net使用dwmapi生成窗口缩略图(win10任务栏缩略图)

// handle: 当前窗口句柄// hwnd: 要生成缩略图的窗口,可以通过EnumWindows,FindWindow查找// thumb: 生成的缩略图标识if (DWMApi.DwmRegisterThumbnail(handle, hwnd, out IntPtr thumb) == 0){ // 取窗口缩略图尺寸,下面画缩略图的时候可以根据取到的size对缩略图做等比缩放 DWMApi.DwmQueryThumbnailSourceSize(thumb, out System.Dr

2021-03-06 09:19:31 740

原创 通过pinvoke.net生成win32托管代码

编写.net程序时,经常会用到SendMessage, BitBlt等非托管代码, 这时候需要使用pinvoke引入非托管方法。引入简单分成两个步骤:去msdn查找方法定义在.net中定义托管方法在这里推荐一个网站pinvoke.net,打开页面,直接搜索方法名,把托管代码复制出来就可以了。另外还有一个对应的vs扩展,在vs扩展中搜索pinvoke可以安装,但是好像不支持vs2019了。...

2021-03-06 08:52:12 287

原创 windows编译webrtc记录

Win10系统安装VS2019安装Windows SDK并勾选Debugging Tools for Windows安装git执行以下命令(注意修改脚本中的目录)cd /d D:\webrtcset WINDOWSSDKDIR=C:\Program Files (x86)\Windows Kits\10set GYP_MSVS_OVERRIDE_PATH=C:\Program Files (x86)\Microsoft Visual Studio\2019\Communitygit con

2020-08-06 16:23:56 152

原创 安卓app启动黑屏问题解决

如果app启动时加载时间过长,在显示splash页之前会有一段时间的黑屏,可以通过设置windowBackground显示一张启动图片来解决黑屏的问题styles.xml<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> <item name="android:windowBackground">@drawable/background</item> <item n

2020-05-28 18:29:16 1326

原创 Unity Remote5 使用

手机上安装Unity Remote5,接上数据线,打开USB调试打开Unity(注意要先连接手机,再打开Unity,否则Unity可能会找不到手机)选择菜单File -> Build Settings勾选Development Build,Script Debugging选择菜单Edit -> Project Settings -> Editor设置Device为A...

2020-04-28 17:03:26 2464

原创 微信抓包

安装夜神模拟器(https://www.yeshen.com/),并开启Root权限安装fiddler(https://www.telerik.com/download/fiddler)打开fiddler,选择菜单Tools -> Options,进入HTTPS选项卡,开启HTTPS抓包夜神模拟器上安装微信打开设置 -> WLAN,长按WiredSSID,配置网络代理代理服...

2020-04-09 14:26:08 10656 1

原创 微信小游戏解包

安装夜神模拟器(https://www.yeshen.com),并开启root打开夜神模拟器,安装微信和QQ登录微信,启动要解包的小游戏打开文件管理器,找到 /data/data/com.tencent.mm/MicroMsg/{一个32位的16进制字符串的文件夹}/appbrand/pkg/ 目录找到目录下的.wxapkg文件,通过QQ传到PC上(由于访问权限问题,有可能会发送失败,这...

2020-04-02 15:31:58 2431

原创 安卓共享元素的使用

页面A和页面B共享一个元素,当从页面A跳转到页面B时,使页面A上的共享元素通过调整大小和位置,直接变换到页面B上页面A上放置一个image,transitionName设置为sharedImage<ImageView android:id="@+id/imageview" android:layout_width="wrap_content" android:layou...

2020-03-30 16:45:11 184

原创 webview与js交互

WebView调用JS<html><body> <p></p></body><script> // 前端开发人员可能会把方法写到一个立即执行函数里 (function(){...})(), 防止代码污染, 这样会导致WebView调用js时访问不到js方法 function foo(msg) { docume...

2020-03-24 15:55:27 147

原创 Handler Looper MessageQueue

Handler主要用于线程之间的消息通信,发送消息时,消息会进入Handler的消息队列(MessageQueue),之后发送消息的线程会继续执行,Handler所在的线程会通过Looper将消息逐一取出并处理Handler所属的线程必须要有一个Looper去处理消息,系统会自动为主线程创建一个Looper用来处理消息,但是在我们自己创建的子线程中由于没有Looper,会导致调用new Hand...

2020-03-20 15:36:38 120

原创 在子线程中使用Handler

在子线程中创建Handler时会抛出RuntimeException异常,提示Can’t create handler inside thread …,这是由于在Handler构造时没有找到当前线程的Looper导致的mLooper = Looper.myLooper();if (mLooper == null) { throw new RuntimeException( ...

2020-03-18 16:57:36 543

原创 RecyclerView中的LayoutManager

LinearLayoutManager可以实现垂直或水平的线性布局默认的垂直方向的线性布局LinearLayoutManager layoutManager = new LinearLayoutManager(this);recyclerView.setLayoutManager(layoutManager);水平方向的现行布局// 第三个参数用于指定是否从右到左布局,基本都...

2020-03-16 16:18:15 311

原创 RecyclerView的简单使用

添加RecyclerView控件<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" andro...

2020-03-16 15:40:40 85

原创 shouldShowRequestPermissionRationale的返回值

应用第一次安装,并且权限被禁用时,返回true权限被禁用时,返回true权限被禁用且不再提示时,返回false已授权时返回falseshouldShowRequestPermissionRationale就是要向用户解释一下你的app为什么需要这个权限。当如果用户已经授权或者用户明确禁止(权限被禁用且不再提示)的时候就不需要再去解释了,所以此时会返回false。...

2020-03-16 15:38:46 661 1

原创 Service

onCreate: 首次创建服务时调用onStartCommand: startService时调用onBind: bindService时调用onUnbind: unbindService时调用onRebind: 重写绑定,并且onUnbind返回true时调用生命周期调用bindService时,根据传入Intent的type判断是否调用onBind,相同的type只执行...

2020-03-16 15:33:31 96

原创 Fragment生命周期

onAttach: Fragment和Activity建立关联时调用onCreateView: Fragment创建视图时调用onActivityCreated: 与Fragment关联的Activity的onCreate返回后调用onDestoryView: Fragment被移除时调用onDetach: Fragment和Activity取消关联时调用Fragment与Acti...

2020-03-16 15:29:58 107

原创 Activity生命周期

onCreate:Activity创建时调用onStart:Activity处于可见状态,但还无法交互onResume:此时Activity已经可以进行交互了onPause:Activity处于停止状态onStop:Activity已经不可见了onDestory:Activity正在被销毁Activity生命周期的验证Activity启动:onCreate -> onS...

2020-03-16 15:27:38 69

Boolean RT.zip

BooleanRT, 实现2个物体间的布尔运算 The extension provides the following functions: 1- Real-time or per-click Boolean execution. 2- Material, UV and texture preservation. 3- Saving to prefab. 4- Constructive solid Geometry (CSG). 5- Smoothing of Boolean execution to keep smooth frame rates by splitting the execution of the Boolean operation over multiple frames. 6- Optional updating of the collider. 7- Creating a new mesh or overwriting existing mesh to affect all referenced objects. 8- Optional smart execution by avoiding the calculation when not need (when there is no intersection or the operands are not being transformed.

2020-05-20

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除