Set Indian Rupee symbol on text view

前端 未结 9 1895
[愿得一人]
[愿得一人] 2020-12-02 12:45

I am developing an application. And i need to set the symbol of Indian rupee on text view which is set with the text as amount.

Symbol:

相关标签:
9条回答
  • 2020-12-02 13:30

    you can go with the below line of code for Flutter

    child: Text('\u20B9 ${tx.amount}',
                            
    
    0 讨论(0)
  • 2020-12-02 13:32

    Use \u20B9 if you want to print the Rupee Symbol
    and
    Use \u20A8 if you want to print "Rs"

    0 讨论(0)
  • 2020-12-02 13:34

    Try this, Instead of Rupee_Foradian.ttf use Rupee.ttf it will work. am getting currency symbol.

    Typeface tf = Typeface.createFromAsset(getAssets(), "font/Rupee.ttf");
    textView1.setTypeface(tf);
    textView1.setText("`");
    
    0 讨论(0)
提交回复
热议问题