Using Action Bar Home Button as an anchor view for PopupMenu
Is it possible to have Home button to trigger a PopupMenu? The following code would not work since the action view has not been set up.

    public boolean onOptionsItemSelected(MenuItem item){
      switch (item.getItemId()) {
	case android.R.id.home:
           PopupMenu popup = new PopupMenu(JournalList.this, item.getActionView());
           popup.inflate(R.menu.list_select_menu);
	   popup.show();
    }

The home button is not available to be accessed this following way either, the findItem fails to find the menu item:

    public boolean onCreateOptionsMenu(Menu menu) {
       Button img = new Button(this);
       img.setText("Pop");
       menu.findItem(android.R.id.home).setActionView(someImageButton);
    }

So what part of ActionBar Home button can be used as an anchor view or if there's a way to set up the view first?

Thanks.
Using Action Bar Home Button as an anchor view for PopupMenu
===

Is it possible to have Home button to trigger a PopupMenu? The following code would not work since the action view has not been set up.

    public boolean onOptionsItemSelected(MenuItem item){
      switch (item.getItemId()) {
	case android.R.id.home:
           PopupMenu popup = new PopupMenu(JournalList.this, item.getActionView());
           popup.inflate(R.menu.list_select_menu);
	   popup.show();
    }

The home button is not available to be accessed this following way either, the findItem fails to find the menu item:

    public boolean onCreateOptionsMenu(Menu menu) {
       Button img = new Button(this);
       img.setText("Pop");
       menu.findItem(android.R.id.home).setActionView(someImageButton);
    }

So what part of ActionBar Home button can be used as an anchor view or if there's a way to set up the view first?

Thanks.