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);
		this.params=params;
		setLayoutParams(params);
		String zoomable=picture.getZoomable();
		if(zoomable!=null&&"true".equals(zoomable.toLowerCase())){
			setOnClickListener(this);
		} 
		setTag(true);
	} 
	 
	@Override 
	public void setImageBitmap(Bitmap bm) {
		super.setImageBitmap(bm);
		isLoad=true;
Contextual code suggestions in your IDE  Get Codota for Java