AutoCompleteTextView的简单用法
2019獨角獸企業重金招聘Python工程師標準>>>
AutoCompleteTextView的簡單用法:
1.android:completionHint ?設置下拉菜單中提示的標題
? ?對應的方法:setCompletionHint(CharSequence)
2. android:comletionHintView 設置下拉菜單中提示標題的視圖
3. android:completionThreshold 設置用戶至少輸入幾個字符才會提示顯示
? ? 對應的方法:setThreshold(int)?
4. android:dropDownAnchor 設置下拉菜單的定位“錨點”組件,如果沒有指定改屬性,將使用該TextView作為定位“錨點”組件
? ? ?對應的方法:setDropDownAnchor(int)
5. android:dropDownHeight 設置下拉菜單的高度
? ? 對應的方法:setDropDownHeight(int)
6. android:dropDownHorizontalOffset 設置下拉菜單與文本框之間的水平偏移。下拉菜單默認與文本框左對齊
7. android:dropDownVerticalOffset 設置下拉菜單與文本框之間的垂直偏移。下拉菜單默認緊跟文本框
8. android:dropDownWidth 設置下拉菜單的高度
? ? 對應的方法:setDropDownWidth(int)
參考:瘋狂android講義
轉載于:https://my.oschina.net/cuitongliang/blog/486160
總結
以上是生活随笔為你收集整理的AutoCompleteTextView的简单用法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: IOSday01 连线和程序标识
- 下一篇: 大中型网站集群架构企业级高标准全自动实战