Code example for ViewTreeObserver

Methods: isAliveremoveGlobalOnLayoutListener

0
			{ 
				try 
				{ 
					// remove the listener... or we'll be doing this a lot. 
					ViewTreeObserver observer = vto;
					if (!observer.isAlive())
						observer = GroupView.this.getViewTreeObserver();
					observer.removeGlobalOnLayoutListener(this);
 
					if (!mIsExpanded)
					{ 
						collapse(false); 
					} 
				} 
				catch (Exception ex)
				{ 
				} 
			} 
		}); 
	} 
Contextual code suggestions in your IDE  Get Codota for Java