Code example for FrameLayout.LayoutParams

Methods: setMargins

0
		@Override 
		public void onComplete() { 
			mCoverFlu = new CoverFluGL(KrocoList.this);
			parentLayout.addView(mCoverFlu, new LayoutParams(
					LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
			LayoutParams params = new LayoutParams(LayoutParams.WRAP_CONTENT,
					LayoutParams.WRAP_CONTENT);
			params.setMargins(0, 20, 0, 0);
			parentLayout.addView(txt_info, params);
			mCoverFlu.setCoverFluListener(new KrocoGLCoverGluListener());
			mCoverFlu.setSelection(0);
			mCoverFlu.setSensitivity(1.5f);
			setContentView(parentLayout);
		} 
	} 
 
	private class KrocoGLCoverGluListener implements CoverFluListener { 
 
		@Override 
		public int getCount(CoverFluGL view) {
			return IMAGE_ADDR.length;