Unable to apply custom header to context menu(android)

view story

http://stackoverflow.com – HI I am developing small android application. In my application I am showing one context menu. every thing is working fine only problem is that I am not able to set header view to my context menu. My code looks like @Override public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { super.onCreateContextMenu(menu, v, menuInfo); LayoutInflater headerInflater = (LayoutInflater) getSherlockActivity() .getSystemService(Context.LAYOUT_INFLATER_SERVICE); ViewGroup header = (ViewGroup) headerInflater.inflate( R.layout.context (HowTos)