码迷,mamicode.com
首页 >  
搜索关键字:handler 子线程 更新ui    ( 7164个结果
自动移动的ImageView
图片会慢慢的向左移动,到头了后,再循环其实这个效果和屏幕背景图片的效果差不多,屏幕背景图是随着滑动来慢慢的滚动,这是自己每个n秒开始动。实现方式自然是用自定的控件了。这次继承的是ImageView,实现原理是用一个handler来更新x坐标,没隔10毫秒来通知下handler,让其计算下x坐标的值。...
分类:移动开发   时间:2014-07-22 22:49:55    阅读次数:205
jQuery中的live绑定多个事件整理
在1.4.0之前(不包含1.4.0)无法使用多个绑定的,单个示例为:$('.clickme').live('click', function() { // Live handler called.});1.4.0-1.4.2开始支持了,实例如下:$('.hoverme').live('mouseo....
分类:Web程序   时间:2014-07-21 10:19:10    阅读次数:252
bootstrap之UpdateStrings
UpdateStrings package io.appium.android.bootstrap.handler; import io.appium.android.bootstrap.AndroidCommand; import io.appium.android.bootstrap.AndroidCommandResult; import io.appium.android.bo...
分类:其他好文   时间:2014-07-20 11:32:38    阅读次数:244
bootstrap之PressKeyCode&&LongPressKeyCode
PressKeyCode package io.appium.android.bootstrap.handler; import com.android.uiautomator.core.UiDevice; import io.appium.android.bootstrap.AndroidCommand; import io.appium.android.bootstrap.Andr...
分类:其他好文   时间:2014-07-19 23:48:19    阅读次数:493
实现了私聊和群聊功能的聊天工具
在前面简单的C/S聊天室的博客中,我们已经提到了,采用的是多线程的方法。服务器端主线程负责不断的侦听端口,子线程负责接收和发送消息。客户端主线程需要接收键盘消息,将其发送到服务器端,子线程需要接收服务器端发过来的消息。在这个简易的C/S聊天室的实现中,仅仅实现了群聊的功能,没有实现私聊。那么,本文就讲实现私聊和群聊。 首先我们想到的是,消息发过来,我怎么知道是公聊消息还是私聊消息呢。所以,这里需...
分类:其他好文   时间:2014-07-19 23:42:39    阅读次数:314
bootstrap之ScrollTo
ScrollTo package io.appium.android.bootstrap.handler; import com.android.uiautomator.core.UiObject; import com.android.uiautomator.core.UiObjectNotFoundException; import com.android.uiautomato...
分类:其他好文   时间:2014-07-19 23:37:28    阅读次数:376
bootstrap之GetName&&GetAttribute&&GetDeviceSize&&GetSize&&GetLocation&&GetDataDir
GetName package io.appium.android.bootstrap.handler; import com.android.uiautomator.core.UiObjectNotFoundException; import io.appium.android.bootstrap.*; import org.json.JSONException; /** * T...
分类:其他好文   时间:2014-07-19 23:33:29    阅读次数:439
bootstrap之DumpWindowHierarchy
DumpWindowHierarchy package io.appium.android.bootstrap.handler; import android.os.Environment; import com.android.uiautomator.core.UiDevice; import io.appium.android.bootstrap.AndroidCommand; i...
分类:Windows程序   时间:2014-07-19 23:25:19    阅读次数:611
Android学习笔记——Handler实例
Handler的实质就是异步消息处理。实例一:Handler的基本用法XML布局代码:<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <T..
分类:移动开发   时间:2014-07-19 16:28:30    阅读次数:334
开发路程(12):ashx文件和aspx
ashx文件和aspx文件有什么不同? 我们先新建一个ashx文件看看: 1 2 using System; 3 using System.Web; 4 public class Handler : IHttpHandler 5 { 6 public void ProcessRequest ...
分类:Web程序   时间:2014-07-19 14:17:24    阅读次数:186
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!