前面一直在寻找 MenuItem文字颜色设置. 我发现API唯一的背景颜色设置. .. 因此,找到下面的方法.在OverFlow看到. 在onCreateOptionsMenu一下. 使MenuItem产生的ItemView去改动文字颜色 @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present.
1.使用不同的字库 mLocalClock.setTypeface(Typeface.SANS_SERIF); Typeface face = Typeface.createFromAsset(getAssets(),"fonts/SIMFANG.TTF"); 2.设置不同的字库,字体在textview中 SpannableString word = new SpannableString("12:45"); word.setSpan(new TypefaceSpa