1、在在XML文件里设置属性隐藏: [xhtml] view plain copy android:visibility="invisible" 2、java代码里设置: [java] view plain copy .setVisibility(View.INVISIBLE);