Code example for FragmentActivity

Methods: findViewById

0
 
		return super.onOptionsItemSelected(item);
	} 
	 
	protected void applyMenuItemOnView(final int resMenuItem, int resView) {
		View v = findViewById(resView);
		if (v == null)
			return; 
 
		v.setOnClickListener(new OnClickListener() {
			@Override 
			public void onClick(View v) {
				onOptionsItemSelected(resMenuItem);
			} 
		}); 
		CheatSheet.setup(v);
	} 
	 
	public boolean isFloatingWindow() { 
		TypedArray typedArray = getTheme().obtainStyledAttributes(new int [] { android.R.attr.windowIsFloating });