I am facing a problem when gets height/width of TextView.
My code :
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(saved
View.getWidth()/View.getHeight() won't give you a meaningful answer until the view has been measured. Read about how android draws views here. See this thread to get an idea of when the measured dimensions will be available.
View.getWidth()/View.getHeight()