Reputation: 145
Am trying to use mathematical notations in my android app. Is there any better way to implement the power notation other than for example 2^32..? I mean if I want to use 2 power 32 is there any superscript implementation in android sdk or should I use 2^32 itself..? Thanks
Upvotes: 1
Views: 645
Reputation: 38098
You can use Html.fromHtml to format some portions of strings in a TextView
myTextView.setText(Html.fromHtml("2<sup>32</sup>"));
Will write: 232
List of supported tags for Html.fromHtml
Upvotes: 2