AbsoluteLayout WebView Layout

 

1. 首先一点设置x 和 y是在绝对布局中完成的

    mAbsoluteLayout.addView(mGallery, new AbsoluteLayout.LayoutParams(1200, AbsoluteLayout.LayoutParams.FILL_PARENT, 40, 0));

 

2. 

     

    public void restoreLayout() {

        LayoutParams layout = (LayoutParams) mVebView.getLayoutParams();

        layout.y = 0;

        mVebView.setLayoutParams(layout);

    }

 

 

你可能感兴趣的:(AbsoluteLayout WebView Layout)