Is there a way to have a TextView pick a font size such that it fills whatever space it has available? For example:
<LinearLayout
layout_width="fill_parent"
layout_height="50dip" >
<TextView
layout_width="fill_parent"
layout_height="fill_parent"
textSize="scale?" />
</LinearLayout>
Thanks
No, there is not built in font scaling in a
TextView. You could overload theonDraw()method in a child ofTextView, butTextViewdoes not support scaling the text automatically.Take a look at this other question.