Answer the question
In order to leave comments, you need to log in
Is it possible to set the size of a TextView in characters?
I need to display a ListView whose elements are LinearLayouts with several nested objects, the first of which is a textView with a string whose maximum length does not exceed 12 characters. Is it possible to align listview lengths from different rows to the size that the maximum length row will take?
Answer the question
In order to leave comments, you need to log in
Yes, you can, the TextView has the "ems" property, respectively, you can specify minEms="12" and maxEms="12" and the width of the TextView will be 12 characters, regardless of the number of characters in it
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question