开发者

How can make "special" style numbers

开发者 https://www.devze.com 2023-03-13 23:19 出处:网络
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

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

精彩评论

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

关注公众号