摘要: AutoCompleteTextView的功能类似于百度或者Google在搜索栏输入信息的时候,弹出的与输入信息接近的提示信息。 当然这里要要用到一些适配器 在Android中 提供了两智能输入框,它们是MultiAutoCompleteTextView、AutoCompleteTextView。它们的功能大致一样,它和 AutoCompleteTextView的区别就是MultiAutoCompleteTextView可以在输入框中一直增加新的选取值。编写方式也 有所不同,在进行setAdapter之后还需要调用setTokenizer() 。下面详细介绍一下。 一、AutoCompl... 阅读全文
posted @ 2012-04-12 16:40 幻星宇 阅读(428) 评论(0) 推荐(0) 编辑
摘要: package com;public class ThreadDemo {/** * @param args */ public static void main(String[] args) { //new TestThread().start();//调用Thread的start方法,实际上调用run方法 Test1Thread t = new Test1Thread();//产生Runnable接口的子类实例化 new Thread(t).start();//启动多线程 //循环输出 for( int i = 0; i < 10; i++ ){ System.out.println 阅读全文
posted @ 2012-04-12 14:40 幻星宇 阅读(189) 评论(0) 推荐(0) 编辑