AutoCompleteTextViewExtend
<com .gosuncn.actve.AutoCompleteTextViewExtend
android : id =" @+id/autoCompleteTextViewExtend"
android : layout_width =" match_parent"
android : layout_height =" wrap_content" />
保存历史记录,AutoCompleteTextViewExtend.saveRecord("")
详细请参照demo和查看在线文档
在线JavaDoc
网址:https://jitpack.io/com/github/huweijian5/AutoCompleteTextViewExtend/[VersionCode]/javadoc/index.html
其中VersionCode 请替换为最新版本号
注意文档使用UTF-8编码,如遇乱码,请在浏览器选择UTF-8编码即可
如果需要引用此库,做法如下:
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
and then,add the dependecy:
dependencies {
compile 'com.github.huweijian5:AutoCompleteTextViewExtend:latest_version'
}
为了避免引入第三方库导致工程依赖多个版本的问题,如android support库
故建议在个人的工程目录下的build.gradle下加入以下变量,具体请看此build.gradle
ext{
minSdkVersion = 16
targetSdkVersion = 25
compileSdkVersion = 25
buildToolsVersion = '25.0.1'
// App dependencies
supportLibraryVersion = '25.0.1'
junitVersion = '4.12'
espressoVersion = '2.2.2'
}