开发者

How can make "special" style numbers

How can I make "special" style numbers, for e开发者_StackOverflow社区xample, scores for a game for Android. How I can use them to appear in the program like as "normal" numbers?


You can use custom fonts for your TextView:

 Typeface tf = Typeface.createFromAsset(getAssets(),
                "fonts/BPreplay.otf";
 tv.setTypeface(tf);

Read this: custom fonts.


Are you talking about having your own font? One solution would be to create 10 images (0-9) and write some code to populate one ore more ImageView views with the correct images to display your score.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜