10 2020 档案
摘要:#Android蓝牙手柄VA-013开发 ##VA-013简介 待补充 #采用“X”+MODE开机方式,LED3灯亮模式 ##摇杆类变量 名 值 按键 MotionEvent.AXIS_BRAKE (Float)1/0 L2按下/松开(短按) MotionEvent.AXIS_GAS (Float)
阅读全文
摘要:手柄相应的按键 摇杆监听(已连接状态) 通过google找到官方示例(需FQ) https://developer.android.com/training/game-controllers/controller-input.html 对于Activity和View系统提供了不同的监听按键方法 这里
阅读全文
摘要:.xml <ListView android:id="@+id/lv_drvices" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1"/> .kt v
阅读全文
摘要:在AndroidManifest文件中含有如下过滤器的Activity组件为默认启动类当程序启动时系统自动调用它 <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="
阅读全文
摘要:#1.权限 关于蓝牙的权限主要涉及到下面三个: BLUETOOTH:允许配对的设备进行连接 BLUETOOTH_ADMIN:允许搜索和配对设备 ACCESS_COARSE_LOCATION:广播接收器接收BluetoothDevice.ACTION_FOUND广播需要改权限
阅读全文
摘要:#解决办法 #kotlin Integer.toHexString(itm.toInt() and(0xff)) #java Integer.toHexString(itm.toInt() & 0xff) #以下为引用内容,方便查阅 ##引自https://www.cnblogs.com/cvbak
阅读全文
摘要:var str =Integer.toHexString(progress) // orderArr[3] = progress.toByte() //错误的写法 orderArr[3] = str.toInt(16).toByte() msg.text = if(str.length > 1) "
阅读全文
摘要:kotlin的三目运算 kotlin中不再有java中的三目运算格式,比如a>b?a:b 取而代之的是直接用if else模式 格式:if(a>b) a else b
阅读全文
摘要:#工程目录 #垂直SeekBar实现代码 package com.okk.vcontroller import android.content.Context import android.graphics.Canvas import android.graphics.Rect import and
阅读全文
摘要:#备用下载连接密码:0000 #实用本地工具: QQMusic QMC Decoder (convert QMC File to MP3 or FLAC) |官网连接:https://github.com/Presburger/qmc-decoder|备用下载连接| |-|-| #在线解码工具: U
阅读全文
摘要:一、数据类型 1、整型 int 16位 -32768~32767 unsigned int 16位 0~65535 2、字符型 char 8位 -128~127 unsigned char 8位 0~255 3、浮点型 float 32位 double 64位 二、变量与常量 1、常量 定义:#de
阅读全文
摘要:好处是,XAML界面Binding到数据后,只需要更新数据,无需再次手动绑定即可完成界面更新。 1.创捷数据类,Model。 例如我创建的CarInfo.cs namespace MVVMDemo1 { public class CarInfo { string CarName_; string C
阅读全文
摘要:WPF匿名线程执行 Thread thread = new Thread(() => { 此处填写代码 }); thread.Start(); WPF线程启动 Thread thread = new Thread( 此处填写要执行的函数 ); thread.Start(); WPF线程中更新UI t
阅读全文
摘要:百度地图, 去掉左下部分的标志 添加以下css, 即可去掉 .anchorBL a{ display: none; } .anchorBL img{ display: none; } .anchorBL span{ display: none!important; } var map = new B
阅读全文

浙公网安备 33010602011771号