android中控件AutoCompleteView自动提示控件
来源:互联网 发布:win7如何设置网络类型 编辑:程序博客网 时间:2024/05/01 07:50
activity_main.xml
<AutoCompleteTextView android:id="@+id/auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:completionThreshold="1"
android:completionHint="请选择"/>
android:completionThreshold="1" 是输入1位开始提示
MainActivity.java
public class MainActivity extends Activity {String[] s = {"java","ja","abc","中国","中美大战"} ;private AutoCompleteTextView auto ;@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.activity_main);auto = (AutoCompleteTextView) findViewById(R.id.auto) ;auto.setAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, s)) ;}}
0 0
- android中控件AutoCompleteView自动提示控件
- android 控件 自动提示(AutoCompleteTextView)
- Android自动提示控件AutoCompleteTextView
- Android:控件AutoCompleteTextView 自动提示
- Android:控件AutoCompleteTextView 自动提示
- Android:控件AutoCompleteTextView 自动提示
- Android:控件AutoCompleteTextView 自动提示
- Android:控件AutoCompleteTextView 自动提示
- Android:控件AutoCompleteTextView 自动提示
- Android:控件AutoCompleteTextView 自动提示
- Android:控件AutoCompleteTextView 自动提示
- Android开发之AutoCompleteTextView控件,自动提示
- (转)Android:控件AutoCompleteTextView 自动提示
- Android UI控件自动提示控件(AutoCompleteTextView)
- 控件AutoCompleteTextView 自动提示
- 控件AutoCompleteTextView 自动提示
- [控件]自动提示 AutoCompleteTextView MultiAutoCompleteTextView
- Android中选择控件、自动填充、GridView控件的使用
- 基于android开发手机控制空调的程序(硬件+软件)
- iOS 开发系列之 字符串(汉字,日期)的比较排序
- How to update jQuery Mobile in Dreamweaver CS6
- Cordova插件开发
- Android OpenGL ES(九)----构建几何物体
- android中控件AutoCompleteView自动提示控件
- C++中string转为int (转)
- Java ClassLoader个人见解
- Majority Element
- 函数指针
- 《Java程序设计》第17周课程设计:《猜猜看》游戏 第三天
- 运动相关
- OJ第三批——Problem S: E3 继承了,成员函数却不可访问
- 顺序表