Code example for ViewGroup.LayoutParams

0
        RhoNativeViewImpl(String viewType, long factory_h, long view_h) {
            mViewType = viewType;
            mFactoryHandle = factory_h;
            mViewHandle = view_h;
            mContainerView = new FrameLayout(ContextFactory.getUiContext());
            mContainerView.addView(getView(), new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
        } 
 
		public View getView() {
			return getViewByHandle(mViewHandle);
		} 
		 
		public void navigate(String url) {
			navigateByHandle(mViewHandle, url);
		} 
		public void destroyView() { 
			destroyByHandle(mFactoryHandle, mViewHandle);
		} 
		public String getViewType() {
			return mViewType;
		}