1: 获取滚动条的值:window.scrollY window.scrollX桌面浏览器中想要获取滚动条的值是通过document.scrollTop和document.scrollLeft得到的,但在iOS中你会发现这两个属性是未定义的,为什么呢?因为在iOS中没有滚动条的概念,在Androi....
分类:
移动平台 时间:
2015-12-02 14:29:42
收藏:
0 评论:
0 赞:
0 阅读:
337
转自http://blog.csdn.net/yanbober/article/details/45887547触摸控件(View)首先执行dispatchTouchEvent方法。在dispatchTouchEvent方法中先执行onTouch方法,后执行onClick方法(onClick方法在o...
分类:
移动平台 时间:
2015-12-02 14:27:42
收藏:
0 评论:
0 赞:
0 阅读:
300
1、ANDROID系统现在有多个版本分别是1.5、1.6、2.0.1、2.1 2.22.3软件基本上是通用的,现在比较主流的系统版本为2.2或2.1,最新的是2.3系统,不过不加以购买1.5或1.6系统的android 手机,这些系统版本太早软件兼容性较差。google是android系统的出品公司...
分类:
移动平台 时间:
2015-12-02 14:24:22
收藏:
0 评论:
0 赞:
0 阅读:
345
$ adop phase=apply patches=17204589 hotpatch=yes *******FATAL ERROR*******PROGRAM : (/app/oracle/apps/VIS/fs1/EBSapps/appl/ad/12.0.0/bin/adzdoptl.pl)T...
分类:
移动平台 时间:
2015-12-02 14:22:32
收藏:
0 评论:
0 赞:
0 阅读:
649
1、实现ImageButton的显示隐藏: xml文件中:XML:android:visibility="invisible"java:view.setVisibility(View.INVISIBLE); visibility属性值可选VISIBLE(设置控件可见)、INVISIBLE(设置控件....
分类:
移动平台 时间:
2015-12-02 14:22:12
收藏:
0 评论:
0 赞:
0 阅读:
276
android EditText监听和长度监测事件
分类:
移动平台 时间:
2015-12-02 14:15:12
收藏:
0 评论:
0 赞:
0 阅读:
361
public class MySpinnerActivity extends Activity { private Spinner spinner; @Override protected void onCreate(Bundle savedInstanceState) { super.onCre....
分类:
移动平台 时间:
2015-12-02 14:10:52
收藏:
0 评论:
0 赞:
0 阅读:
324
相同:其实servletContext和application 是一样的,就相当于一个类创建了两个不同名称的变量。在servlet中ServletContext就是application对象。大家只要打开jsp编译过后生成的Servlet中的_jspService()方法就可以看到如下的声明:Ser...
分类:
移动平台 时间:
2015-12-02 14:05:42
收藏:
0 评论:
0 赞:
0 阅读:
259
<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<!--定义获得屏幕状态..
分类:
移动平台 时间:
2015-12-02 12:43:33
收藏:
0 评论:
0 赞:
0 阅读:
262
高仿Google相册多选效果,长按某一item后然后滑动选择到任意item,效果很不错,适合相册页面多选部分效果。本例子主要是自定义DragSelectRecyclerView通过如下展示gridview效果mList=(DragSelectRecyclerView)findViewById(R.id.list);mList.setLayoutManager(newGridLayoutMan..
分类:
移动平台 时间:
2015-12-02 12:40:43
收藏:
0 评论:
0 赞:
0 阅读:
500
NSUIntegerUsed to describe an unsigned integer.DeclarationOBJECTIVE-Ctypedef unsigned long NSUInteger;DiscussionWhen building 32-bit applications, NSU...
分类:
移动平台 时间:
2015-12-02 12:34:22
收藏:
0 评论:
0 赞:
0 阅读:
259
在一些场景中,经常会需要判断App是否在后台运行,比如是否显示解锁界面,收到新消息是否显示Notification等。需求可能是多样化的,但所依仗的原理是相通的,今天Stay打算说说这些需求的最优解。当然,Stay肯定不会说去for loop判断当前runningProcess或者runningTa...
分类:
移动平台 时间:
2015-12-02 12:30:32
收藏:
0 评论:
0 赞:
0 阅读:
302
MAC下ECLIPSE连接不上ANDROID手机的解决方法mac 系统开发android,真机调试解决方案(无数的坑之后吐血总结)如何在Mac中使用AndroidSDK,使用adb工具避免出现-bash:adb:commandnotfound
分类:
移动平台 时间:
2015-12-02 12:27:12
收藏:
0 评论:
0 赞:
0 阅读:
322
Canvas的rotate()函数本应该是很简单的一个函数,但是由于api手册言之不详,使用中难免有吃不准的地方。下面所记录的几点,都是我在使用中所迷惑过的问题,特此记录。 1,坐标原点在哪里? 如果没有设置,那么旋转原点就是左上角。canvas.rotate(ang); 如果要以画布中心...
分类:
移动平台 时间:
2015-12-02 12:25:42
收藏:
0 评论:
0 赞:
0 阅读:
457
设备管理器就是能够清除数据,和锁屏等等的操作在这里我们要通过短信拦截器(广播接受者进行拦截)然后根据短信内容进行拦截,具体操作是这样的:首先要建立一个类来继承DeviceAdminReceiver然后在清单文件里进行注册 注意这里要引用一个xml文件在res目录下建立一个xml文件夹然后将...
分类:
移动平台 时间:
2015-12-02 12:25:12
收藏:
0 评论:
0 赞:
0 阅读:
319
android EditText禁止复制粘贴完整代码
分类:
移动平台 时间:
2015-12-02 12:21:42
收藏:
0 评论:
0 赞:
0 阅读:
968
从java.lang.RuntimeException: 获取资源ID失败:(packageName=com.ecmoban.android.haocaimao type=string name=umeng_socialize_text_sina_key中可以知道项目中找不到type为string类...
分类:
移动平台 时间:
2015-12-02 12:19:52
收藏:
0 评论:
0 赞:
0 阅读:
2748
This sample demonstrates how to selectively disable Automatic Backups in Android M, either by adjusting the location where data files are stored using...
分类:
移动平台 时间:
2015-12-02 12:16:32
收藏:
0 评论:
0 赞:
0 阅读:
253