android studio3.3.1代码提示忽略大小写的设置

  

跟以往设置有区别,此处为取消红框勾选,设置即可

  

 android studio3.3.1代码提示忽略大小写的设置

  

<强> Android工作室高级控件(自动提示文本框)

  

<强>一、高级控件与低级控件区别?

  

是否使用适配器

  

<强>二、适配器种类和作用

  

种类   

1,数组适配器ArrayAdapter

  
  

新ArrayAdapter(出来。

actv_style、名称);      

2,简单适配器SimpleAdapter

  

3,自定义适配器

  

<强>三、高级控件使用步骤

  

1,获取数据

  

2,创建适配器

  

3,绑定适配器

  

例如:   

1,自动提示文本框

  

独特属性:android: completionThreshold=?”——设置输入多少字符时自动匹配

  

1, AutoCompleteTextView(单一提示)

  

2, MultiAutoCompleteTextView(多次提示)

  

设置多次提示时,设置分隔符方法

  
  

mactv_main。setTokenizer(新MultiAutoCompleteTextView.CommaTokenizer ());

     

activity_main.xml         & lt; & # 63; xml version=" 1.0 " encoding=" utf - 8 " & # 63;比;   & lt; LinearLayout xmlns: android=" http://schemas.android.com/apk/res/android "   xmlns:应用=" http://schemas.android.com/apk/res-auto "   xmlns:工具=" http://schemas.android.com/tools "   android: layout_width=" match_parent "   android: layout_height=" match_parent "   android:取向=按怪薄?   工具:上下文=?MainActivity”比;      & lt; !——自动提示文本框——比;   & lt; !——(单一提示)——比;   & lt; AutoCompleteTextView   android: id=癅 + id/act_main_act1”   android: layout_width=" match_parent "   android: layout_height=" 60 dp "   android:提示="单一提示”/比;      & lt; !——多次提示——比;   & lt; MultiAutoCompleteTextView   android: id=癅 + id/mact_main_mact1”   android: layout_width=" match_parent "   android: completionThreshold=" 1 "   android: layout_height=" 60 dp "   android:提示="多次提示”/比;         & lt;/LinearLayout>   之前      

MainActivity.java         包com.example.t212_a6;      进口android.support.v7.app.AppCompatActivity;   进口android.os.Bundle;   进口android.util.Log;   进口android.view.View;   进口android.widget.AdapterView;   进口android.widget.ArrayAdapter;   进口android.widget.AutoCompleteTextView;   进口android.widget.MultiAutoCompleteTextView;   进口android.widget.SimpleAdapter;   进口android.widget.Spinner;   进口android.widget.Toast;      进口java.util.ArrayList;   进口java.util.HashMap;   进口并不知道;   进口java.util.Map;      公开课MainActivity延伸AppCompatActivity {      私人String [] data1;   私人ArrayAdapteradapter1;   私人AutoCompleteTextView act_main_act1;      私人ArrayAdapteradapter4;   私人MultiAutoCompleteTextView mact_main_mact1;         @Override   保护无效alt=" android studio3.3.1代码提示忽略大小写的设置">

        & lt; & # 63; xml version=" 1.0 " encoding=" utf - 8 " & # 63;比;   & lt; TextView   xmlns: android=" http://schemas.android.com/apk/res/android " android: layout_width=癿atch_parent”   android:输入textColor=" @color/黄”   android: layout_height=癿atch_parent”比;      & lt;/TextView>   之前      

以上这篇android studio3.3.1代码提示忽略大小写的设置就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持。

android studio3.3.1代码提示忽略大小写的设置