Code example for FrameLayout.LayoutParams

Methods: setMargins

0
		if(frame==null){
			frame=group.getFrame();
		} 
		int[] frames=FrameUtil.frame2int(frame);
		frames=FrameUtil.autoAdjust(frames,context);
		LayoutParams params=new LayoutParams(frames[2],frames[3]);
		params.setMargins(frames[0], frames[1], 0, 0);
		setLayoutParams(params);
	} 
 
	@Override 
	public void setImageBitmap(Bitmap bm) {
		super.setImageBitmap(bm);
		isLoad=true;
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE