what is the difference between setHeight and setTextSize?
Share
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.
I’m assuming you’re talking about a TextView.
setHeight()sets the view’s height, andsetTextSize()sets how large the text will be within the view. Thus, a view can take up more space than just its text, which comes into play when using layouts such as RelativeLayout.