在4.4以下的系统中,我们通常监听webview滑动到底端的方法如下:
1,先重新webview,FoundWebView
public class FoundWebView extends WebView {
ScrollInterface mt;
public FoundWebView(Context context) {
super(context);...
分类:
移动开发 时间:
2014-06-05 08:37:47
阅读次数:
269
import java.applet.Applet;
import java.awt.*;
public class Appelet extends Applet {
String name;
public void init ()
{
name=getParameter("myName");
}
public void paint(Graphics gr)
...
分类:
编程语言 时间:
2014-06-05 00:17:59
阅读次数:
259
1 class A{ 2 static int num = 1; 3 public static
void Display(){ 4 System.out.println( num ); 5 } 6 } 7 8 class B extends A{ 9
...
分类:
其他好文 时间:
2014-06-04 22:47:14
阅读次数:
219
红色字体部分为关键,其他都是浮云。。
/**
*
* 由于该Service用于多线程下载文件,需要确保原子性,一直处理一个DownLoadFilePO对象
*
* detailed comment
* @see
* @since 1.0
*/
public class DownLoadService extends Service {
p...
分类:
其他好文 时间:
2014-06-04 22:03:23
阅读次数:
423
public class DiagramEditor extends
GraphicalEditorWithFlyoutPalette implementsIPersistableEditor{ public void
doSave(IProgressMonitor monitor) { ...
分类:
其他好文 时间:
2014-06-04 20:04:59
阅读次数:
397
1、定义接口
使用interface来定义一个接口。接口定义同类的定义类似,也是分为接口的声明和接口体,当中接口体由常量定义和方法定义两部分组成。定义接口的基本格式例如以下:[修饰符]
interface 接口名 [extends 父接口名列表]{[public] [static] [final]....
分类:
编程语言 时间:
2014-06-02 19:21:37
阅读次数:
193
版本:1.0日期:2014.5.17 2014.6.1版权:© 2014 kince 转载注明出处 在介绍SwitchButton之前,先来看一下系统Button是如何实现的。源码如下:@RemoteView
public class Button extends TextView {
public Button(Context context) {
this(conte...
分类:
移动开发 时间:
2014-06-01 17:27:10
阅读次数:
684
JDK源码学习----ArrayList
1.ArrayList简介
ArrayList是基于Object[] 数组的,也就是我们常说的动态数组。它能很方便的实现数组的增加删除等操作。
public class ArrayList extends AbstractList
implements List, RandomAccess, Cloneable, java.io.Se...
分类:
其他好文 时间:
2014-06-01 09:42:27
阅读次数:
263
servlet 1 //输出JSON格式的省份信息 2
@WebServlet("/ServletDemo1") 3 public class ServletDemo1 extends HttpServlet { 4
private static final long serialVersi...
分类:
Web程序 时间:
2014-05-31 20:16:07
阅读次数:
410
package com.sondon.dhjk.test;
import com.sondon.dhjk.utils.LogUtil;
import junit.framework.TestCase;
public class Test extends TestCase {
private static final String TAG = "Test";
/**
* 构造函数
...
分类:
移动开发 时间:
2014-05-31 17:34:48
阅读次数:
251