The solution does not seem simple, however, if you want to try the fraction in xml, go to this site.
http://unicode-search.net/unicode-namesearch.pl?term=fraction
This code worked for me to show 1 & frasl; 4 .
Xml code.
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5dp" android:layout_marginRight="5dp" android:textAppearance="?android:attr/textAppearanceSmall" android:text="\u00BC" android:id="@+id/textView" android:textSize="25sp" />
Required android:text="\u00BC" string android:text="\u00BC" to show 1 & frasl; 4 as a fraction.
So, if you want to show 1 & frasl; 2 or any other as a fraction from the above website, just add the last two characters (in this case BD ) to \u00 .
So 1/2 becomes \ u00BD
penta source share