findViewById in inflated menu
In the following code, findViewById returns null:

    public void onCreateContextMenu(ContextMenu menu, View view, ContextMenuInfo menuInfo) {
		if (view == this.getListView()) {
			AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo)menuInfo;
			final Message clickedMessage = this.adapter.getItem(info.position);
			menu.setHeaderTitle(clickedMessage.getTitle());
			MenuInflater inflater = getMenuInflater();
			inflater.inflate(R.menu.showuser_context, menu);
			View button = this.findViewById(R.id.showuser_contextmenu_showthread);
			// I would like to call button.setOnClickListener here
	}

Here is res/layout/showuser_contextmenu.xml:

	<?xml version="1.0" encoding="utf-8"?>
	<LinearLayout
	  xmlns:android="http://schemas.android.com/apk/res/android"
	  android:orientation="vertical"
	  android:layout_width="match_parent"
	  android:layout_height="match_parent">
	    <LinearLayout android:layout_width="match_parent" android:id="@+id/threaddisplay_initial" android:layout_height="wrap_content" android:orientation="vertical"></LinearLayout>
	    <ListView android:id="@+id/threaddisplay_listreplies" android:layout_height="wrap_content" android:layout_width="match_parent"></ListView>
	</LinearLayout>

And res/menu/showuser_context.xml:

	<?xml version="1.0" encoding="utf-8"?>
	<menu
	  xmlns:android="http://schemas.android.com/apk/res/android">
	    <item android:id="@+id/showuser_contextmenu_showthread" android:title="@string/showuser_contextmenu_showthread"></item>
	    <item android:id="@+id/showuser_contextmenu_reply" android:title="@string/showuser_contextmenu_reply"></item>
	</menu>

I tryed to "clean" (Project -> Clean from eclipse main menu) the project, but it still does not work.

Regards,
ProgVal
findViewById in inflated menu
===

In the following code, findViewById returns null:

    public void onCreateContextMenu(ContextMenu menu, View view, ContextMenuInfo menuInfo) {
		if (view == this.getListView()) {
			AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo)menuInfo;
			final Message clickedMessage = this.adapter.getItem(info.position);
			menu.setHeaderTitle(clickedMessage.getTitle());
			MenuInflater inflater = getMenuInflater();
			inflater.inflate(R.menu.showuser_context, menu);
			View button = this.findViewById(R.id.showuser_contextmenu_showthread);
			// I would like to call button.setOnClickListener here
	}

Here is res/layout/showuser_contextmenu.xml:

	<?xml version="1.0" encoding="utf-8"?>
	<LinearLayout
	  xmlns:android="http://schemas.android.com/apk/res/android"
	  android:orientation="vertical"
	  android:layout_width="match_parent"
	  android:layout_height="match_parent">
	    <LinearLayout android:layout_width="match_parent" android:id="@+id/threaddisplay_initial" android:layout_height="wrap_content" android:orientation="vertical"></LinearLayout>
	    <ListView android:id="@+id/threaddisplay_listreplies" android:layout_height="wrap_content" android:layout_width="match_parent"></ListView>
	</LinearLayout>

And res/menu/showuser_context.xml:

	<?xml version="1.0" encoding="utf-8"?>
	<menu
	  xmlns:android="http://schemas.android.com/apk/res/android">
	    <item android:id="@+id/showuser_contextmenu_showthread" android:title="@string/showuser_contextmenu_showthread"></item>
	    <item android:id="@+id/showuser_contextmenu_reply" android:title="@string/showuser_contextmenu_reply"></item>
	</menu>

I tryed to "clean" (Project -> Clean from eclipse main menu) the project, but it still does not work.

Regards,
ProgVal