Code example for ViewParent

Methods: getParent

0
		    intent.setData(content_url);  
		    context.startActivity(intent);
		} else if (action.equals(RESETSCROLL)) {
			View viewParent=(View) getParent();
			ViewParent framelayout = viewParent.getParent();
			ViewParent page = framelayout.getParent();
			if(page!=null&&page instanceof PageView2){
				PageView2 pageview2=(PageView2)page;
				pageview2.loadResource(0,pageview2.getFrameLayout().getChildCount());
				pageview2.smoothScrollTo(0, 0);
			} 
			Log.d("HotView", "回到页首");
		} 
	} 
}