最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】Android的Eclipse中的xml文件中文字体字头太小看不清

Android crifan 4096浏览 0评论

【背景】

Android开发期间,用的是Eclipse+ADT。

在编辑(别人之前写的)xml文件的时候,发现xml中字体太小,看不太清:

font size in android eclipse xml file too small

参考之前的:

【已解决】基于Eclipse的Android开发环境ADT中,中文显示字体很小,很难看

但是其只是针对java代码的,不是针对此处的xml代码的。

【解决过程】

1.去找对应配置:

eclipse preferences xml xml files editor not found

结果没有找到字体设置

2.点击那个:

Structured Text Editors

click Structured Text Editors also not found

也没字体设置。

3.再看看其他的。

好像是这个通用中的字体配置:

general appearance colors and fonts structured text editors

改为:

change structured text editors font to yahei no effect

看看效果:

结果没变化。

5.又或者是Basic->Text Font

general appearance colors and fonts basic text font to ms yahei

结果:

has change to microsoft yahei 10 for basic text font

结果生效了,xml中的中文字体变大了:

xml file chinese text become larger after change basic text font

 

 

【总结】

(Android开发期间用到的)Eclipse中的xml文件中的中文字体太小,可以通过:

Window->Preferences->General->Appearance->Color and Fonts->Basic->Text Font

从默认的Consolas 10,改为其他的字体和大小,比如此处改为:微软雅黑 10,就可以使得xml文件中文字体变大了。就看得清了。

转载请注明:在路上 » 【已解决】Android的Eclipse中的xml文件中文字体字头太小看不清

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
83 queries in 0.179 seconds, using 22.11MB memory