multiautocompletetextview autocompletetextview 区别和TextView中代码中的设置

来源:互联网 发布:cs231n课程笔记 知乎 编辑:程序博客网 时间:2024/06/05 12:41

multiautocompletetextview是支持分词的

参考:http://blog.csdn.net/shencaifeixia1/article/details/6882798


tv.setLayoutParams(new LinearLayout.LayoutParams(                          LinearLayout.LayoutParams.FILL_PARENT,                          LinearLayout.LayoutParams.FILL_PARENT,weight                      ));

设置文本居中:

android:gravity="center"

参考1:http://www.eoeandroid.com/thread-23765-1-1.html

参考2:http://www.eoeandroid.com/thread-3149-1-1.html