Code example for FrameLayout.LayoutParams

0
	protected static final int CONTENT_VIEW_ID = 140584;
 
	public static void singleFragmentActivitySetContentView(Activity activity) {
		FrameLayout fl = new FrameLayout(activity);
		fl.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,
				LayoutParams.FILL_PARENT));
		fl.setId(CONTENT_VIEW_ID);
		activity.setContentView(fl);
	} 
 
} 
Connect your IDE to all the code out there  Get Codota for Java