设计上有一个这种文字滚动到屏幕外的时候,滚动到边缘进出场需要添加渐变透明度的需求 ,这个以前没有做过于是网上找了找 iOS文字颜色渐变透明 可惜它这个只支持半边的渐变,方向有上下或者左右啊,已经不能满足需求了,它的原理是设置渐变的maskLayer 于是,照猫画虎,写了两个渐变layer当成subL ...
分类:
移动开发 时间:
2020-06-26 12:48:05
阅读次数:
193
package com.citi.tm.core.position.json; import com.citi.tm.modules.supplier.api.util.RawSerializableSupplier; import com.citi.tm.modules.util.jackson. ...
分类:
移动开发 时间:
2020-06-26 12:51:12
阅读次数:
55
Delphi XE Android/IOS 手势介绍[1] 1、标准手势 TStandardGesture sgLeft = sgiLeft, sgRight = sgiRight, sgUp = sgiUp, sgDown = sgiDown, sgUpLeft = sgiUpLeft, sgUp ...
分类:
移动开发 时间:
2020-06-26 13:11:25
阅读次数:
84
var url = patt1.exec(location.href); if (navigator.userAgent.toLowerCase().indexOf("micromessenger") > -1) { window.location.href = "http://www.360doc ...
分类:
移动开发 时间:
2020-06-26 14:20:37
阅读次数:
94
7-1 Happy Numbers (20分) A happy number is defined by the following process: Starting with any positive integer, replace the number by the sum of the s ...
分类:
移动开发 时间:
2020-06-26 14:26:29
阅读次数:
90
539. 移动零 中文English 给一个数组 nums 写一个函数将 0 移动到数组的最后面,非零元素保持原数组的顺序 样例 例1: 输入: nums = [0, 1, 0, 3, 12], 输出: [1, 3, 12, 0, 0]. 例2: 输入: nums = [0, 0, 0, 3, 1] ...
分类:
移动开发 时间:
2020-06-26 14:33:54
阅读次数:
54
# 计算器: C:\Users\del>adb shell dumpsys window w |findstr \/ |findstr name= # mSurface=Surface(name=com.youba.calculate/com.youba.calculate.MainActivity ...
分类:
移动开发 时间:
2020-06-26 14:37:50
阅读次数:
104
常规操作,设置代理准备抓包,启动APP进行登录,对抓取到的包进行分析,最好抓2次进行对比,分析哪些参数的数据有变化: 将APP进行反编译,我用的jeb,通过搜索关键字"nonceStr"定位到代码块: 参数和抓取到的数据包都对的上,应该就是这里了。 通过分析得知this.pwdMD5 = MD5.m ...
分类:
移动开发 时间:
2020-06-26 14:38:26
阅读次数:
108
1.通过WebApplicationUtils工具类获取,使用该方法的必须依赖Servlet容器。 方法如下: ApplicationContext ap = WebApplicationUtils.getWebApplicationContext(servletContextParam) 其中se ...
分类:
移动开发 时间:
2020-06-26 14:42:41
阅读次数:
69
# 计算器: C:\Users\del>adb shell dumpsys window w |findstr \/ |findstr name= # mSurface=Surface(name=com.youba.calculate/com.youba.calculate.MainActivity ...
分类:
移动开发 时间:
2020-06-26 14:58:06
阅读次数:
105
1.swipe从坐标点滑动到坐标点 5个参数(起始横坐标,起始纵坐标,结束横坐标,结束纵坐标,滑动时长单位毫秒) driver.swipe(start_x,start_y,end_x,end_y,duration=None) 注意: 每次操作的期望时间与真实时间有误差,造成了每次的滑动距离不等。 滑 ...
分类:
移动开发 时间:
2020-06-26 16:38:00
阅读次数:
95
C# WinForm的FormBorderStyle设置为none,运行时窗体无法随鼠标移动,可以通过下面三个事件实现: #region 拖动窗体的实现 private Point mouseOff;//鼠标移动位置变量 private bool leftFlag;//标签是否为左键 private ...
分类:
移动开发 时间:
2020-06-26 16:38:26
阅读次数:
87
marker是Array类型,赋值的时候只能对整个数组进行更改赋值,不能只改变内部的对象,亲测Vue.$set()也不行 this.marker = [ { latitude: 39.90, longitude: 116.39, iconPath: '../../../static/location ...
分类:
移动开发 时间:
2020-06-26 18:14:22
阅读次数:
941
1、代码 #pragma mark - 判断机型 /* 设备是否为iPhone4、iPhone4S (1)逻辑分辨率(point):320x480 (2)物理分辨率(pixel,像素):640x1136 (3)缩放因子 :@2x (4)PPI(像素密度): 326 (5)对角线:3.5 inch * ...
分类:
移动开发 时间:
2020-06-26 18:24:18
阅读次数:
143
package jkcs; import java.net.MalformedURLException; import java.net.URL; import java.util.concurrent.TimeUnit; import org.openqa.selenium.remote.Desi ...
分类:
移动开发 时间:
2020-06-26 19:54:25
阅读次数:
76
package jkcs; import java.net.MalformedURLException; import java.net.URL; import java.util.concurrent.TimeUnit; import org.openqa.selenium.remote.Desi ...
分类:
移动开发 时间:
2020-06-26 20:17:06
阅读次数:
67
一、AndroidDriver下的方法 1、启动其他app /使用命令获取adb shell dumpsys window windows | findstr "mCurrentFocus" Activity activity=new Activity("appPackage", "appActiv ...
分类:
移动开发 时间:
2020-06-26 20:27:19
阅读次数:
109
使用NDK的Cmake编译报错:Invalid Android NDK revision 在Windows上,下载Android的SDK之后,其自带有NDK,同时有CMake。当我们使用cmake.exe程序编译项目时,假如使用如下编译语句 E:\Android\Sdk\cmake\3.10.2.4 ...
分类:
移动开发 时间:
2020-06-26 20:28:14
阅读次数:
105
报错信息:java.lang.ClassCastException: com.example.yijie.MainData cannot be cast to androidx.fragment.app.Fragment 报错关键点:XXXX cannot be cast to XXXXX 报错说明 ...
分类:
移动开发 时间:
2020-06-26 21:50:03
阅读次数:
85
let obj = { age:26, } function Person(name, sex) { console.log(this); console.log(this.age); console.log(name, sex); } Function.prototype.bindToApply ...
分类:
移动开发 时间:
2020-06-26 22:03:14
阅读次数:
53