---
title: "android 控件的显示与不显示"
author: "flyering"
date: "2012-07-31T10:25:07Z"
tags: []
categories: ["移动开发"]
slug: "android"
draft: false
lastmod: "2012-07-31T10:25:07Z"
id: 1613168
url: "https://flyering.iteye.com/blog/1613168"
---

android view setVisibility():

有三个参数：Parameters:visibility One of VISIBLE, INVISIBLE, or GONE，想对应的三个常量值：0、4、8

VISIBLE:0  意思是可见的

INVISIBILITY:4 意思是不可见的，但还占着原来的空间

GONE:8  意思是不可见的，不占用原来的布局空间