问题描述
我在我的Android应用程序中使用平板UI采用了Android Studio,但我无法找到AutoCompleteTextView平板UI内,我在我的应用程序中使用AutoCompleteTextview所以任何人都建议我使用的方式?
I am using Flat Ui in my Android Application using Android Studio but i am unable to find AutoCompleteTextView inside Flat Ui and I have to use AutoCompleteTextview in my application so anyone suggest me the way to use that?
推荐答案
我只是一个叉库AutoCompleteTextView并等待被合并。
I Just fork a library for AutoCompleteTextView and waiting to be merged.
目前
-
在库/ src目录/主/ JAVA / COM / cengalabs / flatui /视图创建新的文件名,它FlatAutoCompleteTextView.java
Inside library/src/main/java/com/cengalabs/flatui/views create new file name it FlatAutoCompleteTextView.java
查找FlatEditText.java复制内容并粘贴到FlatAutoCompleteTextView.java
Find the FlatEditText.java copy the content and paste it to FlatAutoCompleteTextView.java
在FlatAutoCompleteTextView.java与FlatEditText与FlatAutoCompleteTextView全部替换文本
Inside FlatAutoCompleteTextView.java replace all text with "FlatEditText" with "FlatAutoCompleteTextView" .
觉得这部分的风格= a.getInt(R.styleable.fl_FlatAutoCompleteTextView_fl_fieldStyle,0);并与风格替换= a.getInt(R.styleable.fl_FlatAutoCompleteTextView_fl_autoFieldStyle,0);
find this part style = a.getInt(R.styleable.fl_FlatAutoCompleteTextView_fl_fieldStyle, 0); and replace with style = a.getInt(R.styleable.fl_FlatAutoCompleteTextView_fl_autoFieldStyle, 0);
编辑库/ src目录/主/ RES /价值/ attrs.xml,粘贴此code内保存或只是这种替代物的
Edit library/src/main/res/values/attrs.xml , paste this code inside and save or just replace content with this http://pastebin.com/w4w5UWdd
要使用样式fl_autoFieldStyle =扁平化或fl_autoFieldStyle =盒子
To use style fl_autoFieldStyle="flat" or fl_autoFieldStyle="box"
这篇关于在Android的小单间的UI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!