Code example for ViewSwitcher

Methods: addView

0
	/** 
	 * 以硬编码的方式来解决底部加载框。目前只能使用这种慵懒的实现手段... 
	 */ 
	private void initLoadFooter() 
	{ 
		loadSwitcher=new ViewSwitcher(getContext());
		// 
		loadSwitcher.addView(loadingView=initLoadingView());
		 
		loadSwitcher.addView(loadView=initLoadView());
		 
		if(triggerView==null)
			triggerView=loadView;//by default
	} 
	 
	public void setTriggerView(View triggerView) {
		this.triggerView = triggerView;
	} 
	 
	 
	/**