在string.xml文件中添加 自己定义的字体图标的对应的文本
<string name="icon_title_bar_back"></string>
其中&#x和后边的;是必须要存在的。
然后再oncreate的文件中引用这样的两句话
//引用对应的字体文件
Typeface font = Typeface.createFromAsset( context.getAssets(), "icomoon.ttf" );
left=(Button) findViewById(R.id.titlebar_left);
left.setTypeface(font); //设置对应的字体。会自动替换为图标
然后要在button中设置对应的text为 icon_title_bar_back