When are views drawn in android? -


I have to get the size of a scene in my activity, but I can not get that information in any Activity Lifecycle Callback (On Crate, OnStart, Honorsum) I am assuming this because the ideas are not ready yet. At what point have the ideas been prepared and whether there is a callback, can I put my code so that I can get the size of the scene?

  findViewById (R.id.header) .getHeight ();  

Provides a good overview of the process of drawing drawing. In fact, there is a passage where everything can happen, and then when the things are kept out of each other.

It looks like your problem, however, you should be able to accomplish your goal by handholding the height values ​​of the hand. Do you have the stretch modes of your gridview, gravity, layout, Have played with the hight etc. See some details of the ultimate options.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -