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

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

你可能感兴趣的:(android)