Currently, there are no documented and supported tools for this, except for your own custom action layouts or types of actions. The API cannot retrieve the normal contents of the action bar (home access, title, regular elements).
ShowcaseView, as mentioned in another answer, is likely doing some undocumented / unsupported things for this, like traversing the View hierarchy to access these widgets. This is risky because future versions of Android or manufacturer / ROM modifications for Android may violate this logic.
source share