1、在在XML文件里设置属性隐藏

android:visibility="invisible"

2、java代码里设置:

.setVisibility(View.INVISIBLE);

如果隐藏后,并且不想还占用相应的位置,就用.setVisibility(View.GONE);


************************************************************************************************
/** 显示/隐藏任务菜单 */
显示
m_oTaskIntent = new Intent();
m_oTaskIntent.setAction("android.intent.action.STATUSBAR_VISIBILITY");
m_oSgSgRenderManager.getContext().sendBroadcast(m_oTaskIntent);
隐藏
m_oTaskIntent.setAction("android.intent.action.STATUSBAR_INVISIBILITY");
m_oSgSgRenderManager.getContext().sendBroadcast(m_oTaskIntent);