I need to show in TextView chars with the same size in pixels, can it be done using a custom font or something like that?
Take for example the char ';' takes 8 pixels in width and a space ' ' takes 7 pixels in width, how can i make those the same size?
Use
<TextView
android:typeface="monospace"
...
/>
in your TextView
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.