Code example for WindowManager.LayoutParams

0
			Drawable image = getResources().getDrawable(imageResource);
			image.setAlpha(100);
 
			tiv = new TouchImageView(this, ruta, image);
 
			LayoutParams lp = new LayoutParams(
					android.view.ViewGroup.LayoutParams.WRAP_CONTENT,
					android.view.ViewGroup.LayoutParams.WRAP_CONTENT);
 
			// tiv.setPadding(50, 0, 50, 0); 
			tiv.setLayoutParams(lp);
 
			// tiv.setImageResource(imageResource); 
			// tiv.setImageDrawable(image); 
			tiv.setMaxZoom(4f);
 
			alParent = new MiFrameLayout(this, tiv);
			/* 
			 * alParent.setLayoutParams(new LayoutParams( 
			 * android.view.ViewGroup.LayoutParams.FILL_PARENT, 
Experience pair programming with AI  Get Codota for Java