在屏幕中实现自动输入文本效果

<?xml version="1.0" encoding="utf-8"?>
<!-- 
 * Copyright (C) 2007 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 -->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:orientation="vertical"
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content">

   <AutoCompleteTextView android:id="@+id/auto_complete"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"/>


</LinearLayout>




package m.usewidget;


import m.usewidget.R;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.AutoCompleteTextView;

public class AutoCompleteTextViewActivity extends Activity {
	String[] res={"beijing1","beijing2","beijing3","shanghai1","shanghai2"}; 
	   @Override
	    protected void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        setContentView(R.layout.autocomplete);
	        setTitle("AutoCompleteTextViewActivity");
	        ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
	                android.R.layout.simple_dropdown_item_1line,COUNTRIES);
	        AutoCompleteTextView textView = (AutoCompleteTextView) findViewById(R.id.auto_complete);
	        textView.setAdapter(adapter);
	    }
	   
	static final String[] COUNTRIES = new String[] {
		"AA" ,"BB", "CC",
		"DD", "EE", "USA" ,"FF" ,"AA1", "AA2",
		"BB2", "BB1", "BB3" 
	    };
	
}

楼月文本自动输入器是一款辅助输入文本的软件,您只需要按下您设置好的热键,该热键对应的文字内容将自动输入到当前的输入,大大节省了您在键盘上的输入时间,降低了您的劳动强度并极大地提高了工作效率。        安装软件后,您只需要重复点击“添加”按钮添加上您经常需要输入文字内容并设置好其对应的热键,当您在必要的时候,按下您设置好的热键,该段文本自动输入到了当前的文本。        该软件广泛应用于网上客服人员回复别人的一些常见问题及一些需要重复提交表格的特殊行业工作人员。如果没有使用本软件,您需要重复地复制并粘贴一些文本,使用本软件后,电脑相当于有了多块剪贴板,您只需要按下不同的快捷键来输入不同剪贴板的内容即可。        一些QQ客服人员,经常要回复客户一些重复重复又重复的问题,此时我们可以把经常需要回答的问题设置到QQ的快捷回复,但是QQ软件的快捷回复最多只能输入50个字符,这是远远不够的。但利用本软件后,该软件文本最多一次可以输入3000个字节的文字,基本上满足了所有用户的需求,并且文字的回车换行符也是完美支持的。另外,帐号和密码也是可以设置在本软件的,当您需要输入这些帐号及密码时,按下相应热键即可将帐号或密码立即进行输入
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值