-
titleduihkxg
其实popupwindow用起来比Dialog 方便,因为dialog一切都需要你自己来实现,而popupwindow帮我们实现了很多,我认为在使用的时候关键我们要看清参数:
popupWindow.showAtLocation(parent, gravity, x, y)
parent这个是一个父view试图,
gravity 这个默认是居中,我们要指定显示方式:Gravity.LEFT
| Gravity.TOP
最后两个参数就是显示的坐标位置,这样就可以根据需求自己定位显示位置了
- 2013-11-26 08:16:34下载
- 积分:1
-
OBD_CAN读取代码
TL718通过一个UART串口与单片机、PDA或PC RS232通讯,在有的新的PC机上已没有装备RS232串口,可以通过虚拟串口实现与TL718通讯,例USB TO RS232、以太网TO RS232、或蓝牙 TO RS232等等。
- 2022-03-18 15:44:53下载
- 积分:1
-
实现货币金额中文大写转换的程序
实现货币金额中文大写转换的程序-realize the amount of Chinese currency capital conversion process
- 2022-04-18 06:57:51下载
- 积分:1
-
SimpleBLEPeripheral协议栈 (蓝牙点灯)
1.添加特征值
我们添加一个1Byte的特征值来控制灯的亮灭
因为simpleGATTProfile是共用的文件,为了不影响其它工程,我们使用一个宏来控制新增加的属性
#if SIMPLEPROFILE_LED
#endif
(1)修改simpleGATTProfile.h
(2)添加UUID
//Characteristic 6 UUID:0xFFF6
(3)添加属性
// Simple Profile Characteristic 6 Properties
// Characteristic 6 Value
// Simple Profile Characteristic 6 User Description
(4)属性表
// Characteristic 6 Declaration
// Characteristic Value 6
// Characteristic 6 User Description
(5)属性设置操作
SimpleProfile_SetParameter
(6)属性获取操作
Get a Simple Profile parameter
(7)属性读操作
simpleProfile_ReadAttrCB
(8)属性写操作
simpleProfile_WriteAttrCB
2.Profile的改造完成后,我们将这个宏打开,配置工程。
3.接着我们在staticvoid simpleProfileChangeCB( uint8 paramID )函数的switch中加入CHAR6的判断即可
- 2022-12-28 01:00:05下载
- 积分:1
-
line-fit
best fit line with given data points
- 2016-05-27 14:41:15下载
- 积分:1
-
Laplacian-Gaussian-Model
文章介绍了一种基于拉普拉斯——高斯模型的语音端点检测算法!(This paper introduces a Laplace-based- voice endpoint detection algorithm Gaussian model!)
- 2015-03-20 22:31:30下载
- 积分:1
-
QPSK
10mQPSK C++代码 rrc滤波(10mQPSK C++ rrc)
- 2013-12-25 10:13:16下载
- 积分:1
-
ghmg
正则式到有穷自动机 有个别软件在安装时金山毒霸会提示存在木马程序,属于误报。原因是在用(Regular style to DFA has individual software installation Jinshan drug tyrants will be prompted to exist Trojans are false positives. The reason is that the use of)
- 2008-05-30 18:54:53下载
- 积分:1
-
lamda2
lambda algorithm for gps attitude determination
- 2013-12-02 14:27:28下载
- 积分:1
-
6
说明: msp430:矩阵键盘实验,简单易懂,适合初学者(msp430: matrix keyboard experiments, easy-to-read, suitable for beginners)
- 2009-08-14 09:34:46下载
- 积分:1