Code example for DialogFragment

Methods: getDialog, onResume

0
	} 
 
	@Override 
	public void onResume() { 
 
		Window w = getDialog().getWindow();
 
		// Auto size the dialog based on it's contents 
		w.setLayout(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);
 
		//w.setBackgroundDrawableResource(resid) 
 
		// Disable standard dialog styling/frame/theme: our custom view should create full UI 
//		setStyle(DialogFragment.STYLE_NO_FRAME, android.R.style.Theme); 
 
		super.onResume(); 
	} 
 
 
	protected void setCustomFonts() { 
		setCustomFonts((ViewGroup)(((ViewGroup)mFragmentView.findViewById(android.R.id.content)).getChildAt(0)));
Experience pair programming with AI  Get Codota for Java