I am working on application translated to languages that are not supported - missing fonts on devices. So I added fonts to application and changed typeface for all TextViews
use actionbar sherlock (http://actionbarsherlock.com/) and customize its code:
in com.actionbarsherlock.app.Actionbar add these two abstract methods:
public abstract void setTitleTypeface(Typeface TF);
public abstract void setSubtitleTypeface(Typeface TF);
and override these methods in com.actionbarsherlock.internal.app.ActionBarImpl
@Override
public void setTitleTypeface(Typeface TF) {
mActionView.setTitleTypeface(TF); }
@Override
public void setSubtitleTypeface(Typeface TF) {
mActionView.setSubtitleTypeface(TF); }
and also in com.actionbarsherlock.internal.app.ActionBarWrapper like this
@Override
public void setTitleTypeface(Typeface TF) {}
@Override
public void setSubtitleTypeface(Typeface TF) {}
and finally in com.actionbarsherlock.internal.widget.ActionBarView add these methods:
public void setTitleTypeface(Typeface TF){
mTitleView.setTypeface(TF);
}
public void setSubtitleTypeface(Typeface TF){
mSubtitleView.setTypeface(TF);
}
and now use it in your SherlockActivity like this:
Typeface TF = Typeface.createFromAsset(getApplication().getAssets(),
"Arial.ttf");
getSupportActionBar().setTitleTypeface(TF);
Make Sure there is no better way!!!
2. for dialogs, system settings,... u should change code like this!