The solution was to identified the ID name of the two ActionBar TextBox: android:id/action_bar_title
and android:id/action_bar_subtitle
. You can do that with the hierarchyviewer SDK tool (thanks @pskink!).
public static void setTypeFace(Typeface typeFace, ViewGroup parent){
for (int i = 0; i < parent.getChildCount(); i++) {
View v = parent.getChildAt(i);
if (v instanceof ViewGroup) {
setTypeFace(typeFace, (ViewGroup) v);
} else if (v instanceof TextView) {
TextView tv = (TextView) v;
String tvIdName = tv.getResources().getResourceName(tv.getId());
if (!tvIdName.equals("android:id/action_bar_title") && !tvIdName.equals("android:id/action_bar_subtitle")) {
if (DO_SUBPIXEL_RENDERING){
tv.setPaintFlags(tv.getPaintFlags() | Paint.SUBPIXEL_TEXT_FLAG);
}
tv.setTypeface(typeFace);
}
}
}
}