在安卓中如何设置文字样式名?
Android开发|冯美娟|2019-01-23 09:25
-
回答:
设置文字样式名,具体实现代码如下:
MxLibDraw.addTextStyle1("MyTextStyle2","txt.shx","hztxt.shx",0.7f); long lId = MxLibDraw.drawText(pt.x + 600,pt.y,500,"测试Test2222"); McDbText txt = new McDbText(lId); txt.setTextStyleName("MyTextStyle2");