1 、 LayoutInflater factory=LayoutInflater.from(MainActivity.this);
View myview=factory.inflate(R.layout.login,null);//将布局文件转变为View
2 、有时候我们需要修改已经生成的列表,添加或者修改数据,notifyDataSetChanged()可以在修改适配器绑定的数组后,不用重新刷新Activity,通知Activity 更新ListView。
3、
<!-- 隐藏输入法用 -->
<LinearLayout
android:focusable="true"
android:focusableInTouchMode="true"
android:layout_width="0px"
android:layout_height="0px"/>