Is it somehow possible to check if a String‘s length, assigned on TextView is of more length than actual device’s screen is? In other words, how to check if text doesn’t fit on the screen?
What I need is to free some room if text doesn’t fit.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Apparntly you can call measure on it.
Taken from question/ answer here
Then you can use that measurement to compare against screen size.