Set Indian Rupee symbol on text view

前端 未结 9 1894
[愿得一人]
[愿得一人] 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:18

    enter image description here

    Hi use this in Strings

    For print rupee symbol: <string name="Rs">\u20B9</string>

    For print Rs text: <string name="rs">\u20A8</string>

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

    You can simply press Alt + Ctrl + 4

    0 讨论(0)
  • 2020-12-02 13:23
     public static String getIndianRupee(String value) {
        Format format = NumberFormat.getCurrencyInstance(new Locale("en", "in"));
        return format.format(new BigDecimal(value));
    }
    
    0 讨论(0)
  • 2020-12-02 13:25

    Try this code snippet it's working fine in Xamarin.Forms

     CultureInfo india = new CultureInfo("hi-IN");
    
     var rupeeSymbol = india.NumberFormat.CurrencySymbol;
    
    0 讨论(0)
  • 2020-12-02 13:27

    use on Adapter

    Viewholder.price.setText("Price: \u20B9"+dataAdapterOBJ.getPrice());
    
    0 讨论(0)
  • 2020-12-02 13:30

    Copy-paste the Unicode to XML or Java and it works just fine. For more info on the Unicode refer http://www.fileformat.info/info/unicode/char/20b9/index.htm

    0 讨论(0)
提交回复
热议问题