I am creating elements programmatically in the onCreate()
function of my activity. I am trying to calculate the height of a TextView
that uses wrap_content
for it's height, but cannot retrieve this value from this function.
Is there a better function in the activity's lifecycle to create these elements from or is there a way I can calculate the height needed for a TextView using a specific typeface, size, and linespace value and set it manually?