If I call getMeasuredWidth() or getWidth() for layout in onResume they returns 0. I think that view it\'s not drawn yet in this moment.
Also I think that I need to
Simpler way:
view.post(new Runnable() { public void run() { view.getWidth(); } } );
http://developer.android.com/reference/android/view/View.html#post(java.lang.Runnable)