You use the getCustomView()
method.
To get the internal views
View myView = actionBar.getCustomView();
Button button1 = (Button)myView.findViewById(R.id.button1);
Button button2 = (Button)myView.findViewById(R.id.button2);
TextView textView = (TextView) myView.findViewById(R.id.textView1);
You can use the findViewById(id)
method on any View
to get one of its internal views.